diff options
author | dzwdz | 2021-07-10 16:37:45 +0200 |
---|---|---|
committer | dzwdz | 2021-07-10 16:37:45 +0200 |
commit | d093a8eea6bfb0ff7e621e9ba3307dae698322aa (patch) | |
tree | 08a5272e2813cf8db8feda4ff91d919cb9ad7330 /kernel/panic.h | |
parent | 1faac72e2514c335e2d5721dce8c9fd1da722062 (diff) |
separate the source code from object files; more modular Makefile
Diffstat (limited to 'kernel/panic.h')
-rw-r--r-- | kernel/panic.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/panic.h b/kernel/panic.h deleted file mode 100644 index 7d2ea5f..0000000 --- a/kernel/panic.h +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once -#include <kernel/tty.h> -#include <platform/asm.h> - -// dumb c shit -#define panic_tostr2(x) #x -#define panic_tostr(x) panic_tostr2(x) - -#define panic() do { \ - tty_const(" PANIC! at the "); \ - tty_const(__func__); \ - tty_const(" (" __FILE__ ":" panic_tostr(__LINE__) ") "); \ - halt_cpu(); \ -} while (0) |