diff options
author | dgilbert <dgilbert@us.ibm.com> | 2011-07-28 16:42:28 -0500 |
---|---|---|
committer | Douglas R. Gilbert <dgilbert@us.ibm.com> | 2011-08-17 14:22:39 -0500 |
commit | c56648379cde6ea3bcfac07923bb560734c6e16f (patch) | |
tree | 81ee3d5abaa130d0f1e36e038c3a344e11f55ce0 /src/sys/init | |
parent | 20b03fdaeb7414fdf9d43634976ca1ab5fbac7f1 (diff) | |
download | talos-hostboot-c56648379cde6ea3bcfac07923bb560734c6e16f.tar.gz talos-hostboot-c56648379cde6ea3bcfac07923bb560734c6e16f.zip |
Virtual File System module load and unload
Change-Id: Iaa6a256a8a15ac48bfba5bc1cab292c5ac246166
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/253
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/sys/init')
-rw-r--r-- | src/sys/init/init_main.C | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sys/init/init_main.C b/src/sys/init/init_main.C index 6292500e3..da83838e4 100644 --- a/src/sys/init/init_main.C +++ b/src/sys/init/init_main.C @@ -15,16 +15,15 @@ void vfs_main(void*); void init_main(void* unused) { tid_t tidrc = 0; + barrier_t l_barrier; + barrier_init(&l_barrier,2); printk("Starting init!\n"); printk("Bringing up VFS..."); - task_create( &vfs_main, NULL ); - - // TODO... add a barrier to ensure VFS is fully up. - while (NULL == _syscall0(Systemcalls::MSGQ_RESOLVE_ROOT)) - task_yield(); + task_create( &vfs_main, &l_barrier ); + barrier_wait(&l_barrier); // run initialization service to start up everything else. printk("init_main: Starting Initialization Service...\n"); |