Modularize interrupt handlers, split up scheduler and PIT interrupt handlers

This commit is contained in:
2025-11-17 01:08:23 +01:00
parent f2b7c5da57
commit 77b5a4a153
6 changed files with 70 additions and 25 deletions

View File

@ -8,6 +8,7 @@
#include "proc/proc.h"
#include "io/io.h"
#include "ipc/mbus/mbus.h"
#include "intr/intr.h"
#include "errors.h"
#include "hshtb.h"
#include "kprintf.h"
@ -155,12 +156,16 @@ int32_t ps2kb_intr(void) {
IpcMBus *PS2KB_MBUS;
void ps2kbdev_intr(void) {
int ps2kbdev_intr(IntrStackFrame *frame) {
(void)frame;
int32_t c = ps2kb_intr();
if (c >= 0) {
uint8_t b = c;
ipc_mbuspublish("ps2kb", &b);
}
return INTR_OK;
}
void ps2kbdev_init(void) {