fix: free: use the new pt system

This commit is contained in:
2024-10-30 21:26:00 +01:00
parent ae3cfa7647
commit 6533334824
3 changed files with 30 additions and 22 deletions

View File

@ -36,10 +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) {
for (uint16_t i = 0;; i++) {
void *ptr = alloc_pages(4096);
memset(ptr, ~0, 4096);
PRINT_PTR(ptr);
memset(ptr, ~0, 4096);
free_pages(ptr, 4096);
}
/* int i = 0; */
/* while (vmalloc(10)) */