From c95f8d146849ac1a5a0eb550e08b6010ae7234aa Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 16 Feb 2024 12:52:09 -0600 Subject: kernel: add a panic function Add a panic function that stops the current CPU and prints an error message into the ring buffer. Signed-off-by: Danny Holman --- include/kernel/panic.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/kernel/panic.h (limited to 'include/kernel') diff --git a/include/kernel/panic.h b/include/kernel/panic.h new file mode 100644 index 0000000..529702b --- /dev/null +++ b/include/kernel/panic.h @@ -0,0 +1,6 @@ +#ifndef KERNEL_PANIC_H +#define KERNEL_PANIC_H + +void panic(const char *str); + +#endif -- cgit v1.2.3