aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-05 16:09:03 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-05 16:09:03 +0200
commit13ab5aef4da9ded93d7c93442911554e86ea9714 (patch)
treee9efd37e3c65f3e0be9293f64f0f03e0ad2f4336 /drivers
parentAdd makefile notes (diff)
downloadkernel.cpp-13ab5aef4da9ded93d7c93442911554e86ea9714.tar.xz
add broken Scheduler
Diffstat (limited to 'drivers')
-rw-r--r--drivers/keyboard.cc4
-rw-r--r--drivers/keyboard.h2
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 */