diff options
author | Danny Holman <dholman@gymli.org> | 2024-03-28 21:55:33 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-03-28 21:55:33 -0500 |
commit | 3b66779d9a8325c77c6cfbf1565885f98da5378f (patch) | |
tree | 38a1359cbaa1357479a8d57b7c206b190012e783 /kernel | |
parent | cbe2690cd5d1b290633c466ebb4df7b64b09b037 (diff) |
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 <dholman@gymli.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <kernel/io.h> +#include <kernel/sched.h> #include <kernel/kmalloc.h> #include <kernel/string.h> #include <kernel/serial.h> @@ -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(); } |