summaryrefslogtreecommitdiffstats
path: root/bsps/i386/pc386/start/start.S
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-14 08:42:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-14 08:43:07 +0100
commita13b89bb173728aa66c258ba17f9a8a36bd0aea2 (patch)
tree27a1803c66676be63d2aa135c8b1b0b7e91a3438 /bsps/i386/pc386/start/start.S
parentbsp/or1k: Use interrupt stack for init stack (diff)
downloadrtems-a13b89bb173728aa66c258ba17f9a8a36bd0aea2.tar.bz2
bsp/i386: Use interrupt stack for init stack
Update #3459.
Diffstat (limited to '')
-rw-r--r--bsps/i386/pc386/start/start.S12
1 files changed, 3 insertions, 9 deletions
diff --git a/bsps/i386/pc386/start/start.S b/bsps/i386/pc386/start/start.S
index 51cd4711f0..06fd8b22ad 100644
--- a/bsps/i386/pc386/start/start.S
+++ b/bsps/i386/pc386/start/start.S
@@ -51,8 +51,6 @@
#error "Missing header ? CPU_STACK_ALIGNMENT NOT DEFINED"
#endif
-.set STACK_SIZE, 0x1000
-
/*----------------------------------------------------------------------------+
| CODE section
+----------------------------------------------------------------------------*/
@@ -176,9 +174,9 @@ speakl: jmp speakl # and SPIN!!!
PUBLIC (_establish_stack)
SYM (_establish_stack):
- movl $_end, eax # eax = end of bss/start of heap
- addl $STACK_SIZE, eax # make room for stack
- subl $4, eax # reserve room for arg to 'boot_card'
+ movl $_ISR_Stack_area_begin, eax # eax = end of bss/start of heap
+ addl $_ISR_Stack_size, eax # make room for stack
+ subl $4, eax # reserve room for arg to 'boot_card'
andl $ - CPU_STACK_ALIGNMENT, eax # align SP on CPU_STACK_ALIGNMENT boundary
movl eax, esp # set stack pointer
movl eax, ebp # set base pointer
@@ -305,10 +303,6 @@ SYM(_boot_multiboot_cmdline):
.byte 0
.endr
- PUBLIC(_stack_size)
-SYM(_stack_size):
- .long STACK_SIZE
-
#ifdef DEBUG_EARLY_START
PUBLIC (welcome_msg)