set APICID of the boot processor to 0

This commit is contained in:
Stefan Lankes 2011-04-08 15:56:36 +02:00
parent 92c5917ef4
commit e3e06fe523

View file

@ -268,6 +268,7 @@ static int lapic_reset(void)
lapic_write(APIC_LINT0, 0x7C); // connect LINT0 to idt entry 124
lapic_write(APIC_LINT1, 0x7D); // connect LINT1 to idt entry 125
lapic_write(APIC_LVT_ER, 0x7E); // connect error to idt entry 126
lapic_write(APIC_ID, 0x00); // reset boot processor id
return 0;
}