Initial commit. We have a booting kernel

This commit is contained in:
Bananymous
2022-11-12 21:04:47 +02:00
commit e6b4866ab0
36 changed files with 691 additions and 0 deletions

15
libc/stdlib/abort.c Normal file
View 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();
}