Changeset 199 for trunk/hal/x86_64/core/hal_apic.c
- Timestamp:
- Jul 13, 2017, 12:54:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_apic.c
r154 r199 298 298 size_t i; 299 299 300 ioapic_va = hal_gpt_bootstrap_valloc(1); // XXX: should be shared301 302 hal_gpt_enter(ioapic_va, ioapic_pa, PG_V|PG_KW|PG_NX|PG_N);303 304 300 ver = hal_ioapic_read(IOAPICVER); 305 301 ioapic_pins = ((ver >> 16) & 0xFF) + 1; … … 389 385 static void hal_lapic_init() 390 386 { 391 lapic_va = hal_gpt_bootstrap_valloc(1); // XXX: should be shared392 393 387 if ((rdmsr(MSR_APICBASE) & APICBASE_PHYSADDR) != lapic_pa) { 394 388 x86_panic("APICBASE and ACPI don't match!\n"); 395 389 } 396 390 wrmsr(MSR_APICBASE, lapic_pa | APICBASE_EN); 397 398 hal_gpt_enter(lapic_va, lapic_pa, PG_V|PG_KW|PG_NX|PG_N);399 391 400 392 hal_lapic_write(LAPIC_TPR, 0);
Note: See TracChangeset
for help on using the changeset viewer.