From 9566dac198f685ef947d82facee0be182a77495e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jul 2021 18:27:47 +0200 Subject: implement basic kernel panics --- kernel/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel/main.c') diff --git a/kernel/main.c b/kernel/main.c index bc1e0d3..85a85d6 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -1,9 +1,10 @@ #include #include #include +#include #include #include -#include +#include void r3_test(); @@ -23,7 +24,6 @@ void kmain() void r3_test() { tty_const("ok"); - asm("cli"); // privileged instruction, should cause a GP - tty_const(" this shouldn't happen"); - for (;;) {} + asm("cli"); + panic(); } -- cgit v1.2.3