From cbe2690cd5d1b290633c466ebb4df7b64b09b037 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Thu, 28 Mar 2024 21:30:12 -0500 Subject: arch: i386: kernel: add mostly finished PFA and paging system Add the mostly finished physical memory allocator and expose its functions to the paging system. Signed-off-by: Danny Holman --- kernel/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kernel/init.c') diff --git a/kernel/init.c b/kernel/init.c index 86567a4..8512988 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -1,5 +1,5 @@ #include -#include +#include #include #include @@ -8,6 +8,7 @@ void jump_userspace(void); char rootfs[1024]; int start_init(int argc, char* argv[]) { + while (1); return 0; } @@ -22,4 +23,5 @@ void process_cmd(char *cmdline) { void kernel_main(char *cmdline) { kprintf("Box Kernel version %s\n", VERSION); serial_init(); + kmalloc_init(); } -- cgit v1.2.3