page allocation

This commit is contained in:
Liam Kerr 2026-02-09 00:13:00 +00:00
parent e64cf1ef72
commit 3efbcf24f4
5 changed files with 40 additions and 3 deletions

View file

@ -10,5 +10,14 @@ void kmain() {
kputs("-------------------");
knewline();
page_init();
kprint("Stress testing memory...\n");
while(1) {
void *p = page_alloc();
if (p == NULL) {
kpanic("Expected OOM reached!");
}
}
poweroff();
}