diff options
Diffstat (limited to 'bsps/m68k/mrm332')
-rw-r--r-- | bsps/m68k/mrm332/start/linkcmds | 5 | ||||
-rw-r--r-- | bsps/m68k/mrm332/start/start.S | 8 |
2 files changed, 4 insertions, 9 deletions
diff --git a/bsps/m68k/mrm332/start/linkcmds b/bsps/m68k/mrm332/start/linkcmds index f86e80dd02..125538c50c 100644 --- a/bsps/m68k/mrm332/start/linkcmds +++ b/bsps/m68k/mrm332/start/linkcmds @@ -32,7 +32,6 @@ __DYNAMIC = 0; * | heap space | * | _ENDHEAP | * | stack space | - * | __stack | top of stack * +--------------------+ <- high memory */ @@ -52,7 +51,6 @@ MEMORY _copy_data_from_rom = 1; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; -_StackSize = DEFINED(_StackSize) ? _StackSize : 0x2000; /* @@ -194,9 +192,6 @@ SECTIONS *(COMMON) . = ALIGN (16); PROVIDE (end = .); - . += _StackSize; - . = ALIGN (16); - _stack_init = .; _clear_end = .; } > ram .rtemsstack (NOLOAD) : { diff --git a/bsps/m68k/mrm332/start/start.S b/bsps/m68k/mrm332/start/start.S index 5e2bbebc8e..300b74fc78 100644 --- a/bsps/m68k/mrm332/start/start.S +++ b/bsps/m68k/mrm332/start/start.S @@ -37,10 +37,10 @@ BEGIN_CODE movel #0x0,d0 /* Use the initial vectors until we get going */ movecl d0,vbr - movel #end, d0 /* Next 3 instructions set stack pointer */ - addl #_StackSize,d0 /* sp = end + _StackSize from linker script */ - movel d0,sp - movel d0,a6 + /* Set stack pointer */ + movel #_Configuration_Interrupt_stack_area_end,d0 + movel d0,sp + movel d0,a6 /* include in ram_init.S */ /* |