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.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/include/common.h b/kernel/include/common.h
index 9fa2011..2e1faa3 100644
--- a/kernel/include/common.h
+++ b/kernel/include/common.h
@@ -26,7 +26,14 @@
#define MiB (KiB * KiB)
#define ASSERT_NOT_REACHED() \
- printk("ASSERTION FAILED", "[%s] SHOULD NOT BE REACHED.", __func__); \
- halt();
+ { \
+ printk("ASSERTION FAILED", \
+ "[%s]:%lu SHOULD NOT BE REACHED.", \
+ __func__, \
+ __LINE__); \
+ /* TODO: We should probably remove this exit() eventually */ \
+ exit(); \
+ halt(); \
+ }
#endif