diff options
Diffstat (limited to 'tests/libc/kernel_stub.c')
-rw-r--r-- | tests/libc/kernel_stub.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/libc/kernel_stub.c b/tests/libc/kernel_stub.c index c859be0..610c3d3 100644 --- a/tests/libc/kernel_stub.c +++ b/tests/libc/kernel_stub.c @@ -3,6 +3,12 @@ #include "stdio.h" #include "stdlib.h" +// abaos has a kernel_panic function +// TODO: we should not need this stub, rather, libc functions should +// use other means to abort the process (e.g. with abort), then the +// kernel should catch this exception and issue the kernel_panic itself. +// anyway: the kernel has to decide whether it dies in panic or it +// kills the culprid child an merely goes his way.. void kernel_panic( const char *format, ... ) { (void)printf( "\n*** KERNEL PANIC ***\n" ); @@ -13,6 +19,6 @@ void kernel_panic( const char *format, ... ) va_end( args ); puts( "" ); - abort( ); + exit( 255 ); } |