From 3b66779d9a8325c77c6cfbf1565885f98da5378f Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Thu, 28 Mar 2024 21:55:33 -0500 Subject: arch: i386: kernel: implement a kmalloc function Add a basic kmalloc implementation. This allows the kernel to allocate blocks smaller than a whole page. Signed-off-by: Danny Holman --- kernel/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/init.c b/kernel/init.c index 8512988..98ac05c 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -21,7 +22,10 @@ void process_cmd(char *cmdline) { } void kernel_main(char *cmdline) { + kmalloc_init(); kprintf("Box Kernel version %s\n", VERSION); serial_init(); - kmalloc_init(); + sched_init(); + + //jump_userspace(); } -- cgit v1.2.3