summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
authordzwdz2021-07-17 19:03:45 +0200
committerdzwdz2021-07-17 19:03:45 +0200
commitf84c55f194df088c291fc4359ccec1305be456ce (patch)
tree0476907b089c174adc6e72cfe780134cbd9cbe89 /src/kernel/main.c
parent895108bbba356aa39920a42df1587211e424ef8b (diff)
basic boot module support
This loads a file from the boot disk into memory. Currently it just gets printed, but it's going to become a real executable soon.
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index d2d7dda..d2f2e7f 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -1,11 +1,13 @@
#include <arch/generic.h>
+#include <kernel/main.h>
#include <kernel/mem.h>
#include <kernel/panic.h>
#include <kernel/proc.h>
void r3_test();
-void kmain() {
+void kmain(struct kmain_info info) {
+ log_write(info.init.at, info.init.size);
log_const("mem...");
mem_init();