SquidgeOS/src/kernel/kernel.c

20 lines
402 B
C
Raw Normal View History

2026-02-08 21:23:47 +00:00
#include <stdint.h>
#include <stddef.h>
#include <drivers/uart.h>
#include <syscon/syscon.h>
#include <kernel/plic.h>
#include <kernel/interrupts.h>
2026-02-08 23:51:37 +00:00
#include <kernel/memory.h>
2026-02-08 21:23:47 +00:00
2026-02-09 18:55:51 +00:00
void kmain()
{
2026-02-09 21:14:13 +00:00
kputs("----------------------");
2026-02-09 18:55:51 +00:00
kprintf("Hello, from %s!", "SquidgeOS");
2026-02-09 21:14:13 +00:00
kputs("----------------------");
2026-02-08 23:51:37 +00:00
knewline();
plic_init();
uart_init();
2026-02-08 23:51:37 +00:00
page_init();
interrupt_init();
2026-02-08 21:23:47 +00:00
}