pub unsafe fn apic_init()
{
    /* Globally enable the APIC by setting EN in IA32_APIC_BASE_MSR */
    wrmsr(0x1b, rdmsr(0x1b) | (1 << 11));

    if use_x2apic() {
        /* If the x2apic is supported, enable x2apic mode */
        wrmsr(0x1b, rdmsr(0x1b) | (1 << 10));
    }

	/* Enable the APIC */
	apic_write(0xf0, 0x1ff);
}
/// Initialize the APIC of this core
Initialize the APIC of this core
Initialize the APIC of this core
pub unsafe fn apic_init()
{
    /* Globally enable the APIC by setting EN in IA32_APIC_BASE_MSR */
    wrmsr(0x1b, rdmsr(0x1b) | (1 << 11));
    if use_x2apic() {
        /* If the x2apic is supported, enable x2apic mode */
        wrmsr(0x1b, rdmsr(0x1b) | (1 << 10));
    }
	/* Enable the APIC */
	apic_write(0xf0, 0x1ff);
}
pub unsafe fn apic_init ( ) { /* Globally enable the APIC by setting EN in IA32_APIC_BASE_MSR */ wrmsr ( 0x1b , rdmsr ( 0x1b ) | ( 1 << 11 ) ) ; if use_x2apic ( ) { /* If the x2apic is supported, enable x2apic mode */ wrmsr ( 0x1b , rdmsr ( 0x1b ) | ( 1 << 10 ) ) ; } /* Enable the APIC */ apic_write ( 0xf0 , 0x1ff ) ; }
Initialize the APIC of this core
Initialize the APIC of this core