/* PANIC("Unhandled interrupt"); */
if(ctx.intn == INT_KEYBOARD) {
+#if FEATURE(DEBUG)
extern struct cpu _cpu[CONFIG_SMP_CPUS];
+#endif /* FEATURE(DEBUG) */
dbg_printf("Keyboard interrupt\n");
-#if 0
+#if FEATURE(DEBUG)
/* hacky reboot: clear IDT entries for
* #DF and #GP, then cause a #GP */
_cpu[CPU_ID].cpu_idt[EXC_DOUBLEFAULT].sd_low = 0;
/* this is such a retarded thing to do, I don't see how this
* could not cause a triple fault */
asm volatile("ljmp $0x30, $0xfee00020"); /* LEEROY JENKINS!!! */
-#endif
+#endif /* FEATURE(DEBUG) */
} else if(ctx.intn != INT_TIMER) {
dbg_printf("Interrupt %u occurred\n", ctx.intn);
}