aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/inc/assert.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 01:27:36 +0200
committerMarvin Borner2021-04-02 01:27:36 +0200
commit192b756a6999a0637fcc72f3fd2f9f7099e32543 (patch)
treef936c42baeb54c8aebd0fc0ac0cb56f9dcf3c96c /libs/libc/inc/assert.h
parentafa00abb2b68205bee539d7947130d6b1b1ec6e9 (diff)
Huge scheduling/proc-management improvements
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) \