From 13ab5aef4da9ded93d7c93442911554e86ea9714 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 5 Mar 2021 16:09:03 +0200 Subject: add broken Scheduler --- drivers/keyboard.cc | 4 +++- drivers/keyboard.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'drivers') 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 */ -- cgit v1.2.1