From b26098268eb443f1ed3dc50d902b2beee40c8342 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Jul 2022 19:35:05 +0200 Subject: amd64: seemingly working syscalls (SYSCALL/SYSRET) --- src/kernel/arch/amd64/32/boot.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/32/boot.s') 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 -- cgit v1.2.3