summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneal <neal>2004-11-22 16:37:28 +0000
committerneal <neal>2004-11-22 16:37:28 +0000
commitfaa8ae8c1c1a22d4d16c73a43d876ba64c3811af (patch)
treee0867963cff91af304cc736c81a73d1d53ac58f4
parent6a30f88a0e4e55a64b169683867939c962eea1f4 (diff)
2004-11-22 Neal H. Walfield <neal@gnu.org>
* deva.c (bootstrap_final): New function. (main): Call bootstrap_final as per the start up protocol to tell wortel that devais up and running and that it should now start the root fs.
-rw-r--r--deva/ChangeLog7
-rw-r--r--deva/deva.c15
2 files changed, 22 insertions, 0 deletions
diff --git a/deva/ChangeLog b/deva/ChangeLog
index ad5751e..429b94f 100644
--- a/deva/ChangeLog
+++ b/deva/ChangeLog
@@ -1,3 +1,10 @@
+2004-11-22 Neal H. Walfield <neal@gnu.org>
+
+ * deva.c (bootstrap_final): New function.
+ (main): Call bootstrap_final as per the start up protocol to tell
+ wortel that devais up and running and that it should now start the
+ root fs.
+
2004-11-17 Neal H. Walfield <neal@gnu.org>
* Makefile.am (bootdir): New variable.
diff --git a/deva/deva.c b/deva/deva.c
index 5089d70..7597d59 100644
--- a/deva/deva.c
+++ b/deva/deva.c
@@ -205,6 +205,19 @@ deva_server (void *arg)
}
+static void
+bootstrap_final (void)
+{
+ l4_thread_id_t task_server;
+ hurd_cap_handle_t task_cap;
+ l4_thread_id_t deva_server;
+ hurd_cap_handle_t deva_cap;
+
+ wortel_bootstrap_final (&task_server, &task_cap, &deva_server, &deva_cap);
+
+ /* FIXME: Do something with the task cap. */
+}
+
int
main (int argc, char *argv[])
{
@@ -237,6 +250,8 @@ main (int argc, char *argv[])
panic ("pthread_create_from_l4_tid_np: %i\n", err);
pthread_detach (manager);
+ bootstrap_final ();
+
/* FIXME: get root filesystem cap (for loading drivers). */
/* FIXME: Eventually, add shutdown support on wortels(?)