diff --git a/kernel/src/interrupts/IRQ.cpp b/kernel/src/interrupts/IRQ.cpp index d40ab001..6376fed8 100644 --- a/kernel/src/interrupts/IRQ.cpp +++ b/kernel/src/interrupts/IRQ.cpp @@ -4,6 +4,7 @@ #include "io/IO.h" #include "io/PIC.h" #include "log/Log.h" +#include "power/reboot.h" #include "rand/Init.h" #include "scheduling/PIT.h" #include "std/stdio.h" @@ -21,6 +22,7 @@ void IRQ::interrupt_handler(Context* context) [[maybe_unused]] volatile unsigned char scancode = IO::inb(0x60); kdbgln("Keyboard key pressed/released, seconds since boot: %ld.%ld", PIT::ms_since_boot / 1000, PIT::ms_since_boot % 1000); + reboot(); break; } default: kwarnln("Unhandled IRQ: %ld", context->irq_number); break;