From ef1166f6e83d72df360a6dfc2f6643d826ce07ba Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 12 Apr 2021 15:10:16 +0000 Subject: panic() and halt() now in kernel private interface --- kernel/panic.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 kernel/panic.h (limited to 'kernel/panic.h') diff --git a/kernel/panic.h b/kernel/panic.h new file mode 100644 index 0000000..8c6bda7 --- /dev/null +++ b/kernel/panic.h @@ -0,0 +1,12 @@ +#pragma once + +#include + +enum panic_reason +{ + GENERAL_PANIC, + UNHANDLED_FAULT, +}; + +noreturn void panic(enum panic_reason reason); +noreturn void halt(void); -- cgit v1.3.1-1-g115d