fix: start frame allocator after kernel code

This commit is contained in:
2024-11-20 01:51:07 +01:00
parent b7dd7761d5
commit 3bc05604db
4 changed files with 57 additions and 32 deletions

View File

@ -66,7 +66,13 @@ void kernel_main(multiboot_info_t *mbd, uint32_t magic)
"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");
/* alloc_frame(); */
// PRINT_PTR(alloc_frame());
/*void *ptr;
while ((ptr = alloc_pages(PAGE_SIZE * 1020))) {
if (ptr)
memset(ptr, ~0, PAGE_SIZE * 1020);
}*/
/* vmalloc(10); */
while (vmalloc(10))
;