diff options
Diffstat (limited to 'src/interrupt.c')
-rw-r--r-- | src/interrupt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interrupt.c b/src/interrupt.c index e588353..c417117 100644 --- a/src/interrupt.c +++ b/src/interrupt.c @@ -23,6 +23,10 @@ void irq_end(uint8_t int_number) { port_write(pic_master_command, PIC_EOI); } +uint8_t ps2_read() { + return port_read(ps2_port); +} + uint32_t handle_int(uint8_t int_number, uint32_t idk, uint32_t esp) { switch (int_number) { case 0x0D: @@ -30,7 +34,7 @@ uint32_t handle_int(uint8_t int_number, uint32_t idk, uint32_t esp) { bees("general protection fault"); break; case 0x21: - process_scancode(port_read(ps2_port)); + keyboard_event(&ps2_read); irq_end(int_number); break; } |