diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-13 23:41:09 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-13 23:41:09 -0400 |
commit | bb5cc59c93b07c87177eafdce9afe43be461b00b (patch) | |
tree | 4128da9b00b2de1fd819b0ce61d8de20ec66e98c /src/sys/os/os_init.c | |
parent | dbeb9ecf76f815e1ad905d61fa043467d35d265f (diff) |
os: init: Panic at end of kernel
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os/os_init.c')
-rw-r--r-- | src/sys/os/os_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/os/os_init.c b/src/sys/os/os_init.c index 2319dec..268ee8f 100644 --- a/src/sys/os/os_init.c +++ b/src/sys/os/os_init.c @@ -1,4 +1,5 @@ #include <sys/cdefs.h> +#include <sys/panic.h> #include <sys/cpuvar.h> struct pcore g_bsp; @@ -10,5 +11,6 @@ __dead void main(void) { cpu_conf(&g_bsp); + panic("end of kernel reached\n"); for (;;); } |