From 176b6eb808f4d02d871c30f6ec19daa179f374d1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 9 Jul 2021 14:43:12 +0200 Subject: Multiboot structs --- src/loader/int.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/loader/int.c') 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; -- cgit v1.2.3