diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-13 16:57:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-13 16:57:07 -0400 |
commit | b4dd90f9e51a0d15b7300e6338873eee8f12968d (patch) | |
tree | 176f186cb22a87cab5144a028dc39983720770ba /src/sys | |
parent | fe63febc6fea46e9f1cee911037a493c53fa0883 (diff) |
kernel/i386: locore: Initialize stack
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/arch/i386/locore.S | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sys/arch/i386/locore.S b/src/sys/arch/i386/locore.S index e448fc8..c1eb715 100644 --- a/src/sys/arch/i386/locore.S +++ b/src/sys/arch/i386/locore.S @@ -21,7 +21,7 @@ fbtag_start: .long 32 // Depth fbtag_end: -.align 8 + .align 8 endtag: .word 0 .word 0 @@ -31,4 +31,12 @@ endtag: .code32 .globl _start _start: + cli + mov stack_bottom, %esp + push %ebx + push %eax jmp . + + .section .bss +stack_bottom: + .fill 4096 * 16, 0 |