Make nulldrv a small C++ program

This commit is contained in:
Justin C. Miller
2019-03-24 13:44:25 -07:00
parent b18243f098
commit ed3f9410a6
8 changed files with 134 additions and 67 deletions

View File

@@ -46,6 +46,7 @@ apic::apic(uint32_t *base) :
lapic::lapic(uint32_t *base, isr spurious) :
apic(base)
{
// TODO: This causes a "reserved" page fault under KVM
apic_write(m_base, 0xf0, static_cast<uint32_t>(spurious));
log::info(logs::apic, "LAPIC created, base %lx", m_base);
}