Debug code to see remote kmsgs
[akaros.git] / kern / src / init.c
index eb55bcb..d744b11 100644 (file)
@@ -8,7 +8,7 @@
 #error "Yeah, it's not possible to build ROS with BSD on Core 0, sorry......"
 #else
 
-#include <ros/timer.h>
+#include <ros/time.h>
 #include <arch/arch.h>
 #include <arch/console.h>
 #include <multiboot.h>
 #include <testing.h>
 #include <kmalloc.h>
 #include <hashtable.h>
+#include <radix.h>
 #include <mm.h>
 #include <frontend.h>
 
 #include <arch/init.h>
-#include <arch/bitmask.h>
+#include <bitmask.h>
 #include <slab.h>
 #include <kfs.h>
 #include <vfs.h>
+#include <devfs.h>
+#include <blockdev.h>
+#include <ext2fs.h>
+#include <kthread.h>
+#include <net.h>
+#include <eth_audio.h>
+#include <console.h>
 
 // zra: flag for Ivy
 int booting = 1;
@@ -73,24 +81,31 @@ void kernel_init(multiboot_info_t *mboot_info)
        kmem_cache_init();              // Sets up slab allocator
        kmalloc_init();
        hashtable_init();
+       radix_init();
        cache_color_alloc_init();       // Inits data structs
        colored_page_alloc_init();      // Allocates colors for agnostic processes
-       mmap_init();
+       kthread_init();                                 /* might need to tweak when this happens */
+       vmr_init();
        file_init();
        page_check();
-
+       vfs_init();
+       devfs_init();
        idt_init();
        kernel_msg_init();
        sysenter_init();
        timer_init();
        train_timing();
+       kb_buf_init(&cons_buf);
        
-       // At this point our boot paths diverge based on arch. 
        arch_init();
-               
-//     printk("Starting tests....\n");
-//     test_color_alloc();
-//     printk("Testing complete....\n");
+       block_init();
+       enable_irq();
+#ifdef __CONFIG_EXT2FS__
+       mount_fs(&ext2_fs_type, "/dev/ramdisk", "/mnt", 0);
+#endif /* __CONFIG_EXT2FS__ */
+#ifdef __CONFIG_ETH_AUDIO__
+       eth_audio_init();
+#endif /* __CONFIG_ETH_AUDIO__ */
 
        // zra: let's Ivy know we're done booting
        booting = 0;