rtos: remove config.h includes from stackings headers
[openocd.git] / src / rtos / rtos_standard_stackings.c
index 059bfc5b401434614b33b7060239b60ffbddb7e5..5478080cf736a557584c5791ba1661f3a00b2704 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+// SPDX-License-Identifier: GPL-2.0-or-later
 
 /***************************************************************************
  *   Copyright (C) 2011 by Broadcom Corporation                            *
@@ -11,6 +11,7 @@
 
 #include "rtos.h"
 #include "target/armv7m.h"
+#include "rtos_standard_stackings.h"
 
 static const struct stack_register_offset rtos_standard_cortex_m3_stack_offsets[ARMV7M_NUM_CORE_REGS] = {
        { ARMV7M_R0,   0x20, 32 },              /* r0   */
@@ -102,45 +103,6 @@ static const struct stack_register_offset rtos_standard_cortex_r4_stack_offsets[
        { 26, 0x04, 32 },               /* CSPR */
 };
 
-static const struct stack_register_offset rtos_standard_nds32_n1068_stack_offsets[] = {
-       { 0,  0x88, 32 },               /* R0  */
-       { 1,  0x8C, 32 },               /* R1 */
-       { 2,  0x14, 32 },               /* R2 */
-       { 3,  0x18, 32 },               /* R3 */
-       { 4,  0x1C, 32 },               /* R4 */
-       { 5,  0x20, 32 },               /* R5 */
-       { 6,  0x24, 32 },               /* R6 */
-       { 7,  0x28, 32 },               /* R7 */
-       { 8,  0x2C, 32 },               /* R8 */
-       { 9,  0x30, 32 },               /* R9 */
-       { 10, 0x34, 32 },               /* R10 */
-       { 11, 0x38, 32 },               /* R11 */
-       { 12, 0x3C, 32 },               /* R12 */
-       { 13, 0x40, 32 },               /* R13 */
-       { 14, 0x44, 32 },               /* R14 */
-       { 15, 0x48, 32 },               /* R15 */
-       { 16, 0x4C, 32 },               /* R16 */
-       { 17, 0x50, 32 },               /* R17 */
-       { 18, 0x54, 32 },               /* R18 */
-       { 19, 0x58, 32 },               /* R19 */
-       { 20, 0x5C, 32 },               /* R20 */
-       { 21, 0x60, 32 },               /* R21 */
-       { 22, 0x64, 32 },               /* R22 */
-       { 23, 0x68, 32 },               /* R23 */
-       { 24, 0x6C, 32 },               /* R24 */
-       { 25, 0x70, 32 },               /* R25 */
-       { 26, 0x74, 32 },               /* R26 */
-       { 27, 0x78, 32 },               /* R27 */
-       { 28, 0x7C, 32 },               /* R28 */
-       { 29, 0x80, 32 },               /* R29 */
-       { 30, 0x84, 32 },               /* R30 (LP) */
-       { 31, 0x00, 32 },               /* R31 (SP) */
-       { 32, 0x04, 32 },               /* PSW */
-       { 33, 0x08, 32 },               /* IPC */
-       { 34, 0x0C, 32 },               /* IPSW */
-       { 35, 0x10, 32 },               /* IFC_LP */
-};
-
 static target_addr_t rtos_generic_stack_align(struct target *target,
        const uint8_t *stack_data, const struct rtos_register_stacking *stacking,
        target_addr_t stack_ptr, int align)
@@ -268,11 +230,3 @@ const struct rtos_register_stacking rtos_standard_cortex_r4_stacking = {
        .calculate_process_stack = rtos_generic_stack_align8,
        .register_offsets = rtos_standard_cortex_r4_stack_offsets
 };
-
-const struct rtos_register_stacking rtos_standard_nds32_n1068_stacking = {
-       .stack_registers_size = 0x90,
-       .stack_growth_direction = -1,
-       .num_output_registers = 32,
-       .calculate_process_stack = rtos_generic_stack_align8,
-       .register_offsets = rtos_standard_nds32_n1068_stack_offsets
-};

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)