summaryrefslogtreecommitdiff
path: root/src/arch/amd64/boot.S
diff options
context:
space:
mode:
authortrimill <trimill@trimillxyz.org>2024-01-26 23:30:26 -0500
committertrimill <trimill@trimillxyz.org>2024-01-26 23:30:26 -0500
commite4fc6902b7ebbfec5e31a70a176f9663f72e6fc6 (patch)
tree03c82cebd36b8b7889b61a39e944d00db9faa78b /src/arch/amd64/boot.S
parentadded boilerplate (todo make it amd64) (diff)
downloadcorn-e4fc6902b7ebbfec5e31a70a176f9663f72e6fc6.tar.gz
corn-e4fc6902b7ebbfec5e31a70a176f9663f72e6fc6.tar.bz2
corn-e4fc6902b7ebbfec5e31a70a176f9663f72e6fc6.zip
added amd64 shim
Diffstat (limited to 'src/arch/amd64/boot.S')
-rw-r--r--src/arch/amd64/boot.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/amd64/boot.S b/src/arch/amd64/boot.S
index f7c24c4..fc580fb 100644
--- a/src/arch/amd64/boot.S
+++ b/src/arch/amd64/boot.S
@@ -1,5 +1,6 @@
global start
extern kmain
+extern amd64_shim
bits 32
; base, limit, access, flags
@@ -62,8 +63,8 @@ after_lgdt:
mov gs, ax
mov esp, stack_end
mov ebp, stack_end
- sti
push ebx
+ call amd64_shim
call kmain
cli
halt: