Make sure to enable xAPIC mode as well as x2APIC mode
This commit is contained in:
parent
f14569e313
commit
a4da0121ea
|
@ -29,7 +29,7 @@ pub struct LocalApic;
|
||||||
|
|
||||||
impl LocalApic {
|
impl LocalApic {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
unsafe { wrmsr(IA32_APIC_BASE, rdmsr(IA32_APIC_BASE) | 1 << 10) }
|
unsafe { wrmsr(IA32_APIC_BASE, rdmsr(IA32_APIC_BASE) | 1 << 11 | 1 << 10) }
|
||||||
LocalApic
|
LocalApic
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue