} else if ((irq > 7) && (irq < 16)) {
state->slave_irr |= 0x01 << (irq - 8); // PAD if -7 then irq 15=no irq
} else {
- PrintError("8259 PIC: Invalid IRQ raised (%d)\n", irq);
+ PrintDebug("8259 PIC: Invalid IRQ raised (%d)\n", irq);
return -1;
}
#include <devices/apic.h>
-/*
- #ifndef DEBUG_IO_APIC
- #undef PrintDebug
- #define PrintDebug(fmt, args...)
- #endif
-*/
+
+#ifndef DEBUG_IO_APIC
+#undef PrintDebug
+#define PrintDebug(fmt, args...)
+#endif
+
#define IO_APIC_BASE_ADDR 0xfec00000
struct redir_tbl_entry * irq_entry = NULL;
if (irq > 24) {
- PrintError("IRQ out of range of IO APIC\n");
+ PrintDebug("IRQ out of range of IO APIC\n");
return -1;
}