summaryrefslogtreecommitdiff
path: root/src/arch/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/amd64')
-rw-r--r--src/arch/amd64/boot.S3
-rw-r--r--src/arch/amd64/shim.c4
2 files changed, 6 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:
diff --git a/src/arch/amd64/shim.c b/src/arch/amd64/shim.c
new file mode 100644
index 0000000..28ba8a0
--- /dev/null
+++ b/src/arch/amd64/shim.c
@@ -0,0 +1,4 @@
+// entry point for amd64
+void amd64_shim(void *boot_info) {
+
+}