page allocation
This commit is contained in:
parent
e64cf1ef72
commit
3efbcf24f4
5 changed files with 40 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue