add: documentation: memory

This commit is contained in:
2024-10-30 19:05:58 +01:00
parent 5fba376e2f
commit 04211e2773
9 changed files with 134 additions and 65 deletions

View File

@ -36,6 +36,11 @@ void kernel_main(void)
"I see no way to confuse an array of 256 seg:off pairs with a "
"complex 8*unknown quantity -byte descriptor table. -- Troy "
"Martin 03:50, 22 March 2009 (UTC)\n");
while (true) {
void *ptr = alloc_pages(4096);
memset(ptr, ~0, 4096);
PRINT_PTR(ptr);
}
/* int i = 0; */
/* while (vmalloc(10)) */
/* ; */