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

@ -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 */
}