fix: memory is now working completely (size issue)
fix: reboot with invalid opcode
This commit is contained in:
25
src/kernel.c
25
src/kernel.c
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user