diff options
Diffstat (limited to 'src/lib/libc/debug.c')
-rw-r--r-- | src/lib/libc/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/libc/debug.c b/src/lib/libc/debug.c index d88b204..29820ac 100644 --- a/src/lib/libc/debug.c +++ b/src/lib/libc/debug.c @@ -8,12 +8,14 @@ void sys_panic(const char* msg, const char* file, int line) { dbg_printf("PANIC in user process\n %s\n at %s:%d\n", msg, file, line); + *((uint32_t*)NULL) = 1; //provoke segfault exit(-1); while(true); } void sys_panic_assert(const char* assert, const char* file, int line) { dbg_printf("ASSERT FAILED in user process\n %s\n at %s:%d\n", assert, file, line); + *((uint32_t*)NULL) = 1; //provoke segfault exit(-1); while(true); } |