summaryrefslogtreecommitdiff
path: root/src/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel.c')
-rw-r--r--src/kernel.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/kernel.c b/src/kernel.c
deleted file mode 100644
index 753f4a5..0000000
--- a/src/kernel.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#define UART_BASE 0x10000000 // Example UART address
-
-static inline void putchar(char c) {
- volatile char *uart = (volatile char *)UART_BASE;
- *uart = c;
-}
-
-static void print_string(const char *str) {
- while (*str) {
- putchar(*str++);
- }
-}
-
-void kernel_main(void) {
- print_string("Hello from RISC-V kernel!\n");
-
- while (1) {
- // Wait
- }
-}