syscall: set MSR_IA32_FMASK to disable RFLAGS.IF

This commit is contained in:
Michael Shaw 2024-06-27 14:59:55 -04:00
commit 8b6e1c6342
3 changed files with 3 additions and 1 deletions

View file

@ -199,7 +199,6 @@ irq 0x0F
.global gate_syscall
gate_syscall:
cli
pushq %r11
pushq %rcx
movq %r10, %rcx

View file

@ -192,4 +192,6 @@ void syscall_init()
uint64_t efer = rdmsr(MSR_IA32_EFER);
wrmsr(MSR_IA32_EFER, efer | 0x1);
wrmsr(MSR_IA32_FMASK, 0x200); /* disable interrupts */
}