syscall: clear more flags

This commit is contained in:
Matheus
2026-04-16 18:17:16 -03:00
parent c54d618c82
commit 96c8f96e7b
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ void arch_cpu_init() {
wrmsr(MSR_STAR, star);
wrmsr(MSR_LSTAR, (uint64_t)arch_syscall_entry);
wrmsr(MSR_CSTAR, 0); // no compatibility mode syscall handler
wrmsr(MSR_FMASK, 0x200); // disable interrupts on syscall
wrmsr(MSR_FMASK, 0x257fd5);
// enable SSE
asm volatile(
-1
View File
@@ -281,7 +281,6 @@ arch_syscall_entry:
xor rbp, rbp
; call logging function
cld
sti
mov rdi, rax
extern arch_syscall_log