diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-22 09:59:58 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-22 09:59:58 +0200 |
commit | fb9d73ff32de7c83552707622512be0ef1db241c (patch) | |
tree | 2187542a85c998c43952ecf39c8f9598ba8f6929 /libk/stdlib/console.cc | |
parent | Kconfig (diff) | |
download | kernel.cpp-fb9d73ff32de7c83552707622512be0ef1db241c.tar.xz |
Enable interrupts
Diffstat (limited to 'libk/stdlib/console.cc')
-rw-r--r-- | libk/stdlib/console.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libk/stdlib/console.cc b/libk/stdlib/console.cc index a234e6b..c076297 100644 --- a/libk/stdlib/console.cc +++ b/libk/stdlib/console.cc @@ -13,15 +13,3 @@ void Console::set(Console* ptr) { Iterator<Console*> Console::begin() { return Iterator<Console*>(global_console, last_console); } - -void abort() { - /* - * On gcc, a 'while(true) {}' will infinitely loop - * but clang will optimize it away on -O2 if it's empty - * therefore, add no-op - */ - while (true) { - asm volatile("nop"); - } - __builtin_unreachable(); -} |