diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-27 23:14:29 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-27 23:14:29 -0500 |
commit | a8a80d326de9550b2a25b1255a2093ab43219ede (patch) | |
tree | d42a800f735caf93679d1728e2d5f20004db3b65 /kernel/panic.cpp | |
parent | 7199e74aa22e592a3b77bdd81f735edca5470596 (diff) | |
download | hilbert-os-a8a80d326de9550b2a25b1255a2093ab43219ede.tar.gz |
keyboard input
Diffstat (limited to 'kernel/panic.cpp')
-rw-r--r-- | kernel/panic.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/panic.cpp b/kernel/panic.cpp new file mode 100644 index 0000000..233fcf4 --- /dev/null +++ b/kernel/panic.cpp @@ -0,0 +1,10 @@ +#include <hilbert/kernel/terminal.hpp> +#include <hilbert/kernel/panic.hpp> + +namespace hilbert::kernel { + [[noreturn]] void panic(const char *string_sz) { + terminal::put_string_sz(string_sz); + while (1) + asm ("hlt"); + } +} |