2026-02-08 21:23:47 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stddef.h>
|
2026-02-08 22:06:36 +00:00
|
|
|
#include <drivers/uart.h>
|
|
|
|
|
#include <syscon/syscon.h>
|
2026-02-08 22:41:38 +00:00
|
|
|
#include <kernel/panic.h>
|
2026-02-08 23:51:37 +00:00
|
|
|
#include <kernel/memory.h>
|
2026-02-08 21:23:47 +00:00
|
|
|
|
|
|
|
|
void kmain() {
|
2026-02-09 02:57:04 +00:00
|
|
|
kprintf("Hello, from %s!" , "SquidgeOS");
|
2026-02-08 23:51:37 +00:00
|
|
|
kputs("-------------------");
|
|
|
|
|
knewline();
|
|
|
|
|
page_init();
|
2026-02-09 00:13:00 +00:00
|
|
|
|
2026-02-09 02:21:48 +00:00
|
|
|
//kprint("Stress testing memory...\n");
|
|
|
|
|
//while(1) {
|
|
|
|
|
// void *p = page_alloc();
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
test_memory_integrity();
|
2026-02-09 03:28:54 +00:00
|
|
|
test_memory_alignment();
|
|
|
|
|
test_memory_stress();
|
2026-02-08 22:06:36 +00:00
|
|
|
poweroff();
|
2026-02-08 21:23:47 +00:00
|
|
|
}
|