aboutsummaryrefslogtreecommitdiff
path: root/src/isr.c
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-04-01 21:46:28 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-08-12 10:13:59 +0300
commit9b777b088facde26c33df6c746b948caff725602 (patch)
tree3e88f6808e80a233f3e78640d1f2545489665376 /src/isr.c
parentlidt (diff)
downloadkernel-9b777b088facde26c33df6c746b948caff725602.tar.xz
printf: add %d, %u and %x
Diffstat (limited to 'src/isr.c')
-rw-r--r--src/isr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/isr.c b/src/isr.c
index c94d37e..b89ecd2 100644
--- a/src/isr.c
+++ b/src/isr.c
@@ -9,7 +9,10 @@
__attribute__((interrupt)) void
abort_handler(struct interrupt_frame *frame)
{
- printf("abort\n");
+ printf("system abort\n");
+ printf("ip: %x cs=%x\n", frame->ip, frame->cs);
+ printf("sp: %x ss=%x\n", frame->sp, frame->ss);
+ printf("flags: %x\n", frame->flags);
abort();
}