Remove APIC debug outputs
This commit is contained in:
parent
dc07fd0255
commit
6fcc6da022
@ -55,7 +55,6 @@ struct Acpi
|
||||
void initialize()
|
||||
{
|
||||
apic_address = local_apic_address;
|
||||
Klog.writefln("Found 32-bit APIC address: 0x%x", apic_address);
|
||||
const(void) * end = cast(const(void) *)(&this) + header.length;
|
||||
const(Entry) * entry = cast(const(Entry) *)(cast(ulong)&this + MADT.sizeof);
|
||||
while (entry < end)
|
||||
@ -64,7 +63,6 @@ struct Acpi
|
||||
if (entry.type == Entry.LOCAL_APIC_ADDRESS_OVERRIDE)
|
||||
{
|
||||
/* Found a 64-bit Local APIC Address Override entry. */
|
||||
Klog.writefln("Found 64-bit APIC address: 0x%x", apic_address);
|
||||
memcpy(cast(void *)&apic_address, cast(const(void) *)entry + 4u, apic_address.sizeof);
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
*/
|
||||
module hulk.apic;
|
||||
|
||||
import hulk.klog;
|
||||
import hulk.hurl;
|
||||
import hulk.acpi;
|
||||
import hulk.idt;
|
||||
@ -72,8 +71,6 @@ struct Apic
|
||||
PT_WRITABLE | PT_WRITE_THROUGH | PT_DISABLE_CACHE | PT_NO_EXECUTE);
|
||||
Hurl.map(cast(ulong)io_apic_registers, cast(ulong)io_apic_registers,
|
||||
PT_WRITABLE | PT_WRITE_THROUGH | PT_DISABLE_CACHE | PT_NO_EXECUTE);
|
||||
Klog.writefln("LAPIC ID: 0x%08x", apic_registers.lapic_id.value);
|
||||
Klog.writefln("LAPIC version: 0x%08x", apic_registers.lapic_version.value);
|
||||
/* Enable local APIC to receive interrupts and set spurious interrupt
|
||||
* vector to 0xFF. */
|
||||
apic_registers.spurious_interrupt_vector.value = 0x100u | Idt.INT_APIC_SPURIOUS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user