Initial commit

This commit is contained in:
2024-06-02 00:26:57 +02:00
commit 45f420a338
21 changed files with 889 additions and 0 deletions

12
kernel/lib.c Normal file
View File

@ -0,0 +1,12 @@
#include "kernel/lib.h"
#include "kernel/riscv.h"
__attribute__((noreturn)) void panic(const char* s)
{
// @Todo Refactor UART
volatile char* kUartBase = (volatile char*)0x1000'0000;
while (*s) *kUartBase = *s++;
hart_halt();
}