From 192b756a6999a0637fcc72f3fd2f9f7099e32543 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 2 Apr 2021 01:27:36 +0200 Subject: Huge scheduling/proc-management improvements --- libs/libc/inc/assert.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libs/libc/inc/assert.h') 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) \ -- cgit v1.2.3