Merge branch 'main' of git.chauvet.pro:starnakin/42_KFS

This commit is contained in:
2024-10-17 16:11:40 +02:00
10 changed files with 95 additions and 16 deletions

View File

@ -6,6 +6,7 @@
#include "memory.h"
#include "power.h"
#include "shell.h"
#include "string.h"
#include "terminal.h"
#include <stdbool.h>
@ -28,13 +29,15 @@ void kernel_main(void)
terminal_initialize();
init_gdt();
init_idt();
/* init_memory(); */
init_memory();
load_drivers();
memset((void *)0x10001, 'a', 10);
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");
while (!kmalloc(10))
;
/* vmalloc(10); */
/* while (!vmalloc(10)) */
/* ; */
shell_init();
}