Modularize interrupt handlers, split up scheduler and PIT interrupt handlers
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user