From 928bf3f29d7a8b2163a3c1d5c15554d5b42c606b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 1 Aug 2020 17:30:42 +0200 Subject: Some entry position optimizations --- src/drivers/interrupts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/interrupts.c') diff --git a/src/drivers/interrupts.c b/src/drivers/interrupts.c index dc031e0..1bd0b44 100644 --- a/src/drivers/interrupts.c +++ b/src/drivers/interrupts.c @@ -5,6 +5,7 @@ #include #include #include +#include #include /** @@ -136,7 +137,7 @@ void isr_handler(struct regs *r) if (handler) { handler(r); } else if (r->int_no <= 32) { - serial_print("Exception, halting!\n"); + printf("#%d Exception, halting!\n", r->int_no); __asm__("cli"); while (1) { }; -- cgit v1.2.3