mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user