fix: memory is now working completely (size issue)

fix: reboot with invalid opcode
This commit is contained in:
2025-04-17 15:09:22 +02:00
parent 5e561bfa15
commit 2e09db2dd1
6 changed files with 36 additions and 23 deletions

View File

@ -59,16 +59,21 @@ void kernel_main(multiboot_info_t *mbd, uint32_t magic)
init_idt();
init_memory(mbd, magic);
load_drivers();
/* kprintf(KERN_ALERT */
/* "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"); */
// kprintf(KERN_ALERT
// "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");
create_kernel_task();
exec_fn(owo);
/* exec_fn(owo); */
/* exec_fn(owo); */
/* exec_fn(owo); */
vmalloc(1231231);
// uint32_t nb_alloc = 0;
// while (vmalloc(10))
// nb_alloc++;
// kprintf("%d\n", nb_alloc);
for (uint8_t i = 0; i < 10; i++)
vmalloc(32);
// exec_fn(owo);
// exec_fn(owo);
// exec_fn(owo);
// exec_fn(owo);
shell_init();
}