Files
riscv-os/kernel/lib.c
2024-06-02 00:26:57 +02:00

13 lines
263 B
C

#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();
}