mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
check the cpu features before the NX bit is set
This commit is contained in:
parent
d02440f8f6
commit
e53c126bf3
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ int cpu_detection(void) {
|
|||
}
|
||||
|
||||
if (cpu_info.feature3 & CPU_FEATURE_SYSCALL) {
|
||||
wrmsr(MSR_EFER, rdmsr(MSR_EFER) | EFER_LMA | EFER_LME | EFER_NXE | EFER_SCE);
|
||||
wrmsr(MSR_EFER, rdmsr(MSR_EFER) | EFER_LMA | EFER_LME | EFER_SCE);
|
||||
wrmsr(MSR_STAR, (0x1BULL << 48) | (0x08ULL << 32));
|
||||
wrmsr(MSR_LSTAR, (size_t) &isrsyscall);
|
||||
// clear IF flag during an interrupt
|
||||
|
|
Loading…
Add table
Reference in a new issue