diff options
Diffstat (limited to 'src/loader/int.c')
-rw-r--r-- | src/loader/int.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/loader/int.c b/src/loader/int.c index 67b80f0..6bfea09 100644 --- a/src/loader/int.c +++ b/src/loader/int.c @@ -125,19 +125,16 @@ static u32 int_event_handler(struct int_frame *frame) * Universal handler */ -static u8 int_enabled = 1; - u32 int_handler(u32 esp); u32 int_handler(u32 esp) { struct int_frame *frame = (struct int_frame *)esp; - if (frame->int_no < 32) { + if (frame->int_no < 32) int_trap_handler(frame); - } else if (int_enabled && frame->int_no < 48) { + else if (frame->int_no < 48) esp = int_event_handler(frame); - } else if (frame->int_no >= 48) { + else panic("Unknown interrupt\n"); - } pic_ack(frame->int_no); return esp; |