aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/inc/assert.h')
-rw-r--r--libs/libc/inc/assert.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/libc/inc/assert.h b/libs/libc/inc/assert.h
index 3656c33..ed835c5 100644
--- a/libs/libc/inc/assert.h
+++ b/libs/libc/inc/assert.h
@@ -11,11 +11,7 @@
if (!(exp)) { \
printf("%s:%d: %s: Kernel assertion '%s' failed\n", __FILE__, __LINE__, __func__, \
#exp); \
- struct proc *assert_proc = proc_current(); \
- if (assert_proc) \
- proc_exit(assert_proc, 1); \
- else \
- __asm__ volatile("cli\nhlt"); \
+ __asm__ volatile("cli\nhlt"); \
}
#elif defined(userspace)
#define assert(exp) \