diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-08 17:25:51 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-08 17:26:43 +0530 |
commit | c755557d0f85bd98200da263d50f9b2f552efe4b (patch) | |
tree | b207ece15da28e987aacf9d066d86793c16a36f3 /kernel/include | |
parent | b82649c2b156d5351e15fbbde00d09e5a8917b26 (diff) |
kernel: Add ASSERT_NOT_REACHED()
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/common.h | 4 |
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 |