Initial commit. We have a booting kernel
This commit is contained in:
15
libc/stdlib/abort.c
Normal file
15
libc/stdlib/abort.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
__attribute__((__noreturn__))
|
||||
void abort(void)
|
||||
{
|
||||
#if defined(__is_libk)
|
||||
printf("Kernel panic: abort()\n");
|
||||
asm volatile("hlt");
|
||||
#else
|
||||
printf("abort()\n");
|
||||
#endif
|
||||
while (1);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
Reference in New Issue
Block a user