summaryrefslogtreecommitdiff
path: root/kernel/panic.cpp
blob: 233fcf4d70c14669afff1eef6f580d5936e72179 (plain) (blame)
1
2
3
4
5
6
7
8
9
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");
  }
}