syscall: set MSR_IA32_FMASK to disable RFLAGS.IF
This commit is contained in:
parent
d67c828c6f
commit
8b6e1c6342
3 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue