_M procs start up at _start/hart_entry for vcore0
[akaros.git] / kern / src / init.c
index 0c6b8bc..889974a 100644 (file)
@@ -4,8 +4,8 @@
 #pragma nosharc
 #endif
 
-#ifdef __BSD_ON_CORE_0__
-#include Everything For Free -- It just works!!
+#ifdef __CONFIG_BSD_ON_CORE0__
+#error "Yeah, it's not possible to build ROS with BSD on Core 0, sorry......"
 #else
 
 #include <arch/arch.h>
@@ -28,6 +28,8 @@
 #include <testing.h>
 #include <kmalloc.h>
 #include <hashtable.h>
+#include <mm.h>
+#include <frontend.h>
 
 #include <arch/init.h>
 #include <arch/bitmask.h>
@@ -71,10 +73,12 @@ void kernel_init(multiboot_info_t *mboot_info)
        hashtable_init();
        cache_color_alloc_init();       // Inits data structs
        colored_page_alloc_init();      // Allocates colors for agnostic processes
+       mmap_init();
+       file_init();
        page_check();
 
        idt_init();
-       active_msg_init();
+       kernel_msg_init();
        sysenter_init();
        timer_init();