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/keyboard.cc | |
parent | Add makefile notes (diff) | |
download | kernel.cpp-13ab5aef4da9ded93d7c93442911554e86ea9714.tar.xz |
add broken Scheduler
Diffstat (limited to 'drivers/keyboard.cc')
-rw-r--r-- | drivers/keyboard.cc | 4 |
1 files changed, 3 insertions, 1 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; } |