summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/boot.s
diff options
context:
space:
mode:
authordzwdz2021-09-19 21:20:11 +0200
committerdzwdz2021-09-19 21:20:11 +0200
commitd6e3c058d62befd034ec47cbcd57ae02d97ba1db (patch)
tree6968364abd8c81f2cd1e79b73d760de5b350657d /src/kernel/arch/i386/boot.s
parent45fcc12bbef511d8142cfd9a0b0f2a07edb3b8ea (diff)
call sysenter_setup before kmain_early
makes the code slightly simpler, imo
Diffstat (limited to 'src/kernel/arch/i386/boot.s')
-rw-r--r--src/kernel/arch/i386/boot.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/arch/i386/boot.s b/src/kernel/arch/i386/boot.s
index e6eb26f..0101b40 100644
--- a/src/kernel/arch/i386/boot.s
+++ b/src/kernel/arch/i386/boot.s
@@ -3,6 +3,7 @@
.type _start, @function
_start:
mov $_bss_end, %esp // the stack is at the top of bss
+ call sysenter_setup
push %ebx // address of the Multiboot struct
call kmain_early