Skip to content

Commit 6286c51

Browse files
committed
feat(msr): add X2APIC enable functionality
1 parent 32327c0 commit 6286c51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/registers/model_specific.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ bitflags! {
235235
// bits 0 - 7 are reserved.
236236
/// Indicates whether the current processor is the bootstrap processor
237237
const BSP = 1 << 8;
238-
// bits 9 - 10 are reserved.
238+
// bit 9 is reserved.
239+
/// Places the local APIC in the x2APIC mode. Processor support for x2APIC feature can be
240+
/// detected using the `cpuid` instruction. (CPUID.(EAX=1):ECX.21)
241+
const X2APIC_ENABLE = 1 << 10;
239242
/// Enables or disables the local Apic
240243
const LAPIC_ENABLE = 1 << 11;
241244
/// Specifies the base address of the APIC registers. This 24-bit value is extended by 12 bits at the low end to form the base address.

0 commit comments

Comments
 (0)