From b4dd90f9e51a0d15b7300e6338873eee8f12968d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Sep 2025 16:57:07 -0400 Subject: kernel/i386: locore: Initialize stack Signed-off-by: Ian Moffett --- src/sys/arch/i386/locore.S | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/sys/arch/i386/locore.S') 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 -- cgit v1.2.3