summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-03-28 21:55:33 -0500
committerDanny Holman <dholman@gymli.org>2024-03-28 21:55:33 -0500
commit3b66779d9a8325c77c6cfbf1565885f98da5378f (patch)
tree38a1359cbaa1357479a8d57b7c206b190012e783 /kernel
parentcbe2690cd5d1b290633c466ebb4df7b64b09b037 (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.c6
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();
}