aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/common.h')
-rw-r--r--kernel/include/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/include/common.h b/kernel/include/common.h
index 52076fa..041d3b1 100644
--- a/kernel/include/common.h
+++ b/kernel/include/common.h
@@ -25,4 +25,8 @@
#define KiB 1024
#define MiB (KiB * KiB)
+#define ASSERT_NOT_REACHED() \
+ printk("ASSERTION FAILED:", "[%s] SHOULD NOT BE REACHED.", __func__); \
+ halt();
+
#endif