feature: kalloc_frame and demo in the main

This commit is contained in:
2024-09-19 17:04:35 +02:00
parent 8fd17276b2
commit f559e71433
4 changed files with 57 additions and 23 deletions

View File

@ -1,6 +1,8 @@
#include "gdt.h"
#include "kprintf.h"
#include "memory.h"
#include "shell.h"
#include "string.h"
#include "terminal.h"
#include <stdbool.h>
@ -23,5 +25,8 @@ void kernel_main(void)
terminal_initialize();
init_gdt();
init_memory();
char *str = (char *)kalloc_frame(1);
memcpy(str, "Hello world!\n", 15);
kprintf(KERN_INFO, "%s", str);
shell_init();
}