diff options
author | Danny Holman <dholman@gymli.org> | 2024-02-16 12:52:09 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-02-16 12:52:09 -0600 |
commit | c95f8d146849ac1a5a0eb550e08b6010ae7234aa (patch) | |
tree | b5dc539314e6afd143012005c319ec191e9a256c /include/kernel | |
parent | d0b2495636d042a1f301fd2d0d68d7f782275cd4 (diff) |
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 <dholman@gymli.org>
Diffstat (limited to 'include/kernel')
-rw-r--r-- | include/kernel/panic.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |