Make the demo reboot when you press a key
This commit is contained in:
parent
29f0253e5b
commit
4f360693bd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user