summaryrefslogtreecommitdiffhomepage
path: root/src/loader/int.c
diff options
context:
space:
mode:
authorMarvin Borner2021-07-09 14:43:12 +0200
committerMarvin Borner2021-07-09 14:43:12 +0200
commit176b6eb808f4d02d871c30f6ec19daa179f374d1 (patch)
treeb465898e33812b93d424a22071e08805f12555b4 /src/loader/int.c
parent9a2d5cbdc7972d1d5bfb1ea93f82f66d113faa17 (diff)
Multiboot structs
Diffstat (limited to 'src/loader/int.c')
-rw-r--r--src/loader/int.c9
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;