summaryrefslogtreecommitdiffstats
path: root/src/sys/init/init_main.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/init/init_main.C')
-rw-r--r--src/sys/init/init_main.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sys/init/init_main.C b/src/sys/init/init_main.C
index c11b4ef97..a7bc68b55 100644
--- a/src/sys/init/init_main.C
+++ b/src/sys/init/init_main.C
@@ -14,13 +14,21 @@ void init_child(void* unused)
task_end();
}
+void vfs_main(void*);
+
void init_main(void* unused)
{
printk("Starting init!\n");
+
+ printk("Bringing up VFS...");
+ task_create(&vfs_main, NULL);
+ task_yield(); // TODO... add a barrier to ensure VFS is fully up.
global_mutex = mutex_create();
msg_q_t msgq = msg_q_create();
+ msg_q_register(msgq, "/msg/init");
+
msg_t* msg = msg_allocate();
msg->type = 1; msg->data[0] = 0xDEADBEEF12345678;
msg_send(msgq, msg);
OpenPOWER on IntegriCloud