summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/32/boot.s
diff options
context:
space:
mode:
authordzwdz2022-07-16 19:35:05 +0200
committerdzwdz2022-07-16 19:35:05 +0200
commitb26098268eb443f1ed3dc50d902b2beee40c8342 (patch)
tree1b7bf720cde8e68fe1f446a414f38f4f63175227 /src/kernel/arch/amd64/32/boot.s
parentce80ee8d40b0a2b48bfbbceac9a0baee189c5e1b (diff)
amd64: seemingly working syscalls (SYSCALL/SYSRET)
Diffstat (limited to 'src/kernel/arch/amd64/32/boot.s')
-rw-r--r--src/kernel/arch/amd64/32/boot.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/32/boot.s b/src/kernel/arch/amd64/32/boot.s
index eb33c28..06de66e 100644
--- a/src/kernel/arch/amd64/32/boot.s
+++ b/src/kernel/arch/amd64/32/boot.s
@@ -25,7 +25,7 @@ _start:
mov $0xC0000080, %ecx // EFER MSR
rdmsr
- or $(1 | 1<<8 | 1<<11), %eax // sysenter | long mode | NX
+ or $(1 | 1<<8 | 1<<11), %eax // syscall/ret | long mode | NX
wrmsr
mov %cr0, %eax