diff options
Diffstat (limited to 'bsps/mips')
-rw-r--r-- | bsps/mips/csb350/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/mips/csb350/start/start.S | 2 | ||||
-rw-r--r-- | bsps/mips/hurricane/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/mips/jmr3904/start/linkcmds | 8 | ||||
-rw-r--r-- | bsps/mips/jmr3904/start/start.S | 2 | ||||
-rw-r--r-- | bsps/mips/malta/start/linkcmds | 8 | ||||
-rw-r--r-- | bsps/mips/malta/start/start.S | 2 | ||||
-rw-r--r-- | bsps/mips/rbtx4925/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/mips/rbtx4938/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/mips/shared/irq/exception.S | 10 |
10 files changed, 6 insertions, 46 deletions
diff --git a/bsps/mips/csb350/start/linkcmds b/bsps/mips/csb350/start/linkcmds index d9d2d1c815..961ada650e 100644 --- a/bsps/mips/csb350/start/linkcmds +++ b/bsps/mips/csb350/start/linkcmds @@ -15,7 +15,6 @@ _sdram_size = DEFINED(_sdram_size) ? _sdram_size : 12M; RamBase = _sdram_base; RamSize = _sdram_size; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x4000; ENTRY(_start) STARTUP(start.o) @@ -187,10 +186,6 @@ SECTIONS *(.bss .bss.* .gnu.linkonce.b.*) *(COMMON) . = ALIGN (64); - _stack_limit = .; - . += _StackSize; - __stack = .; - _stack_init = .; _clear_end = .; end = .; _end = .; diff --git a/bsps/mips/csb350/start/start.S b/bsps/mips/csb350/start/start.S index 9aea3f4cae..dc92f1a430 100644 --- a/bsps/mips/csb350/start/start.S +++ b/bsps/mips/csb350/start/start.S @@ -67,7 +67,7 @@ zerobss: bltu v0,v1,3b addiu v0,v0,4 /* executed in delay slot */ - la t0, _stack_init /* initialize stack so we */ + la t0, _Configuration_Interrupt_stack_area_end /* initialize stack so we */ /* We must subtract 24 bytes for the 3 8 byte arguments to main, in case main wants to write them back to the stack. The caller is supposed to allocate stack space for parameters in registers in diff --git a/bsps/mips/hurricane/start/linkcmds b/bsps/mips/hurricane/start/linkcmds index 3ffaf52710..51e47158d3 100644 --- a/bsps/mips/hurricane/start/linkcmds +++ b/bsps/mips/hurricane/start/linkcmds @@ -8,7 +8,6 @@ RamBase = DEFINED(RamBase) ? RamBase : 0x80000000; RamSize = DEFINED(RamSize) ? RamSize : 4M; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; ENTRY(start) STARTUP(start.o) @@ -166,10 +165,6 @@ SECTIONS *(.bss) *(COMMON) . = ALIGN (64); - _stack_limit = .; - . += _StackSize; - __stack = .; - _stack_init = .; end = .; _end = .; } diff --git a/bsps/mips/jmr3904/start/linkcmds b/bsps/mips/jmr3904/start/linkcmds index a3d64a4284..0becab1e6f 100644 --- a/bsps/mips/jmr3904/start/linkcmds +++ b/bsps/mips/jmr3904/start/linkcmds @@ -8,7 +8,6 @@ RamBase = DEFINED(RamBase) ? RamBase : 0x88000000; RamSize = DEFINED(RamSize) ? RamSize : 4M; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; ENTRY(_start) STARTUP(start.o) @@ -164,10 +163,6 @@ SECTIONS *(.bss*) *(COMMON) . = ALIGN (64); - _stack_limit = .; - . += _StackSize; - __stack = .; - _stack_init = .; _clear_end = .; } @@ -181,9 +176,6 @@ SECTIONS _end = .; -/* Put starting stack in SRAM (8 Kb); this size is the same as the stack from - the original script (when everything was in SRAM). */ - /* __stack = 0x8000A000; */ /* DWARF debug sections. Symbols in the DWARF debugging sections are relative to the beginning of the section so we begin them at 0. */ diff --git a/bsps/mips/jmr3904/start/start.S b/bsps/mips/jmr3904/start/start.S index 92c0ddd956..9e1fa4182b 100644 --- a/bsps/mips/jmr3904/start/start.S +++ b/bsps/mips/jmr3904/start/start.S @@ -139,7 +139,7 @@ zerobss: bltu v0,v1,3b addiu v0,v0,4 # executed in delay slot - la t0, _stack_init # initialize stack so we + la t0, _Configuration_Interrupt_stack_area_end # initialize stack so we /* We must subtract 24 bytes for the 3 8 byte arguments to main, in case main wants to write them back to the stack. The caller is supposed to allocate stack space for parameters in registers in diff --git a/bsps/mips/malta/start/linkcmds b/bsps/mips/malta/start/linkcmds index 4e44bce110..1d6745cfe1 100644 --- a/bsps/mips/malta/start/linkcmds +++ b/bsps/mips/malta/start/linkcmds @@ -8,7 +8,6 @@ RamBase = DEFINED(RamBase) ? RamBase : 0x80000000; RamSize = DEFINED(RamSize) ? RamSize : 128M; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x2000; ENTRY(_start) STARTUP(start.o) @@ -165,10 +164,6 @@ SECTIONS *(.bss*) *(COMMON) . = ALIGN (64); - _stack_limit = .; - . += _StackSize; - __stack = .; - _stack_init = .; _clear_end = .; } @@ -182,9 +177,6 @@ SECTIONS _end = .; -/* Put starting stack in SRAM (8 Kb); this size is the same as the stack from - the original script (when everything was in SRAM). */ - /* __stack = 0x8000A000; */ /* DWARF debug sections. Symbols in the DWARF debugging sections are relative to the beginning of the section so we begin them at 0. */ diff --git a/bsps/mips/malta/start/start.S b/bsps/mips/malta/start/start.S index 8f5f96489f..d437575cca 100644 --- a/bsps/mips/malta/start/start.S +++ b/bsps/mips/malta/start/start.S @@ -166,7 +166,7 @@ zerobss: bltu v0,v1,3b addiu v0,v0,4 # executed in delay slot - la t0, _stack_init # initialize stack so we + la t0, _Configuration_Interrupt_stack_area_end # initialize stack so we /* We must subtract 24 bytes for the 3 8 byte arguments to main, in case main wants to write them back to the stack. The caller is supposed to allocate stack space for parameters in registers in diff --git a/bsps/mips/rbtx4925/start/linkcmds b/bsps/mips/rbtx4925/start/linkcmds index 7c75cb5d59..3042176adf 100644 --- a/bsps/mips/rbtx4925/start/linkcmds +++ b/bsps/mips/rbtx4925/start/linkcmds @@ -8,7 +8,6 @@ RamBase = DEFINED(RamBase) ? RamBase : 0x80000000; RamSize = DEFINED(RamSize) ? RamSize : 4M; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; ENTRY(start) STARTUP(start.o) @@ -166,10 +165,6 @@ SECTIONS *(.bss) *(COMMON) . = ALIGN (64); - _stack_limit = .; - . += _StackSize; - __stack = .; - _stack_init = .; end = .; _end = .; } diff --git a/bsps/mips/rbtx4938/start/linkcmds b/bsps/mips/rbtx4938/start/linkcmds index a9deef8cd9..e11d1dcee2 100644 --- a/bsps/mips/rbtx4938/start/linkcmds +++ b/bsps/mips/rbtx4938/start/linkcmds @@ -8,7 +8,6 @@ RamBase = DEFINED(RamBase) ? RamBase : 0x80000000; RamSize = DEFINED(RamSize) ? RamSize : 4M; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000; ENTRY(start) STARTUP(start.o) @@ -166,10 +165,6 @@ SECTIONS *(.bss) *(COMMON) . = ALIGN (64); - _stack_limit = .; - . += _StackSize; - __stack = .; - _stack_init = .; end = .; _end = .; } diff --git a/bsps/mips/shared/irq/exception.S b/bsps/mips/shared/irq/exception.S index e916ae55fe..30c733b05e 100644 --- a/bsps/mips/shared/irq/exception.S +++ b/bsps/mips/shared/irq/exception.S @@ -214,10 +214,8 @@ _chk_int: /* * - * #if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE ) - * if ( _ISR_Nest_level == 0 ) - * switch to software interrupt stack - * #endif + * if ( _ISR_Nest_level == 0 ) + * switch to software interrupt stack */ /* @@ -307,9 +305,7 @@ _ISR_Handler_cleanup: /* - * #if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE ) - * restore stack - * #endif + * restore stack * * if ( !_Thread_Dispatch_necessary ) * goto the label "exit interrupt (simple case)" |