diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-05 16:09:03 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-05 16:09:03 +0200 |
commit | 13ab5aef4da9ded93d7c93442911554e86ea9714 (patch) | |
tree | e9efd37e3c65f3e0be9293f64f0f03e0ad2f4336 /drivers | |
parent | Add makefile notes (diff) | |
download | kernel.cpp-13ab5aef4da9ded93d7c93442911554e86ea9714.tar.xz |
add broken Scheduler
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/keyboard.cc | 4 | ||||
-rw-r--r-- | drivers/keyboard.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/keyboard.cc b/drivers/keyboard.cc index 09fd4e9..2fae83c 100644 --- a/drivers/keyboard.cc +++ b/drivers/keyboard.cc @@ -25,7 +25,7 @@ Keyboard::Keyboard() : InterruptHandler(0x01) { dataport.write(dat_enable_scanning); } -void Keyboard::trigger() { +cpu_state_t* Keyboard::trigger(cpu_state_t* cpu) { const auto key = dataport.read(); if (key < 0x80) { @@ -157,4 +157,6 @@ void Keyboard::trigger() { break; } } + + return cpu; } diff --git a/drivers/keyboard.h b/drivers/keyboard.h index cac0cb0..b7b67c1 100644 --- a/drivers/keyboard.h +++ b/drivers/keyboard.h @@ -8,7 +8,7 @@ class Keyboard : public InterruptHandler { public: Keyboard(); - void trigger() override; + cpu_state_t* trigger(cpu_state_t*) override; private: /* 8042 PS/2 Controller Ports */ |