diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-01-15 16:01:16 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-01-15 16:01:16 +0100 |
| commit | f98c5fc917bf06c408be24e98f659d606f8f5cf3 (patch) | |
| tree | ed9f599e1637f9135d4e67a9e81641f405ba91f9 /arch/x86_64/pre/src/exception_handling/panic.cpp | |
| parent | 1799e1ba1b825eda639141b0597a1783576b69da (diff) | |
| download | kernel-f98c5fc917bf06c408be24e98f659d606f8f5cf3.tar.xz kernel-f98c5fc917bf06c408be24e98f659d606f8f5cf3.zip | |
x86_64: remove obsolete components
Diffstat (limited to 'arch/x86_64/pre/src/exception_handling/panic.cpp')
| -rw-r--r-- | arch/x86_64/pre/src/exception_handling/panic.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/x86_64/pre/src/exception_handling/panic.cpp b/arch/x86_64/pre/src/exception_handling/panic.cpp deleted file mode 100644 index 9511a9a..0000000 --- a/arch/x86_64/pre/src/exception_handling/panic.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include "arch/exception_handling/panic.hpp" - -#include "arch/kernel/halt.hpp" -#include "arch/video/vga/text.hpp" - -namespace teachos::arch::exception_handling -{ - extern "C" char const message_prefix_panic[]; - - auto panic(char const * reason) -> void - { - panic(message_prefix_panic, reason); - } - - auto panic(char const * prefix, char const * reason) -> void - { - using video::vga::text::common_attributes::white_on_red; - - video::vga::text::newline(); - video::vga::text::write(prefix, white_on_red); - video::vga::text::write(reason, white_on_red); - - kernel::halt(); - }; -} // namespace teachos::arch::exception_handling |
