aboutsummaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
commite16f5f81dfb2e97a554ec19b941ec05a7942fd2d (patch)
tree46f0609b5be009d4d1057fa02ece4461732941e0 /common/main.c
parent5f30284181fcfe5b16dfb94d4fba9a9ed4a2dc6a (diff)
downloadkmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.tar.gz
kmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.zip
add initial smp bringup
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/main.c b/common/main.c
index 30d9ed5..7291387 100644
--- a/common/main.c
+++ b/common/main.c
@@ -15,6 +15,7 @@
#include <kmi/irq.h>
#include <arch/arch.h>
#include <arch/proc.h>
+#include <arch/smp.h>
#include <libfdt.h>
/**
@@ -51,9 +52,9 @@ void __main main(void *fdt, uintptr_t ram_base)
init_irq(fdt);
init_timer(fdt);
init_proc(fdt);
- /* free temporary virtual memory now that we're in the init process
- * space */
- destroy_vmem(b);
+
+ /* try to bring up other cores on system */
+ smp_bringup(b, fdt);
/* start running init program */
run_init(cur_tcb(), fdt);