summaryrefslogtreecommitdiff
path: root/src/arch/amd64/boot.S
diff options
context:
space:
mode:
authortrimill <trimill@trimillxyz.org>2024-01-29 16:25:39 -0500
committertrimill <trimill@trimillxyz.org>2024-01-29 16:29:04 -0500
commit57260801943108d063aa1adbfafe838c3eddd0de (patch)
treeffa531eced442600c514fd13035c3c40c2f08112 /src/arch/amd64/boot.S
parentpanic (diff)
downloadcorn-57260801943108d063aa1adbfafe838c3eddd0de.tar.gz
corn-57260801943108d063aa1adbfafe838c3eddd0de.tar.bz2
corn-57260801943108d063aa1adbfafe838c3eddd0de.zip
add interrupts (not yet fully working)
Diffstat (limited to 'src/arch/amd64/boot.S')
-rw-r--r--src/arch/amd64/boot.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/amd64/boot.S b/src/arch/amd64/boot.S
index 6482d79..483f0f0 100644
--- a/src/arch/amd64/boot.S
+++ b/src/arch/amd64/boot.S
@@ -117,7 +117,6 @@ start:
;push ebx ; Call our function to set up basic paging
;call amd64_shim
-
mov eax, cr4 ; Enable the PAE bit
or eax, 1 << 5
mov cr4, eax
@@ -139,6 +138,7 @@ code64:
pop rdi
call amd64_shim
mov rdi, rax
+ sti
call kmain
cli
halt: