summaryrefslogtreecommitdiff
path: root/viengoos/viengoos.c
diff options
context:
space:
mode:
authorneal <neal>2008-05-23 10:38:22 +0000
committerneal <neal>2008-05-23 10:38:22 +0000
commit81b79ac426c3aa0fdcd701359c56df76aec64192 (patch)
treebd92171b11d00dd3c924a81e29fd4069a4bfa297 /viengoos/viengoos.c
parent93e40dbdea6165ed1149b01a399394db4d11d3a2 (diff)
2008-05-23 Neal H. Walfield <neal@gnu.org>
* viengoos.c (ager_start): Set the new thread's pager to the initial thread. * server.c (server_loop): If we get a message from a kernel (i.e., Viengoos) thread, panic.
Diffstat (limited to 'viengoos/viengoos.c')
-rw-r--r--viengoos/viengoos.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/viengoos/viengoos.c b/viengoos/viengoos.c
index 3af7a8a..786f22f 100644
--- a/viengoos/viengoos.c
+++ b/viengoos/viengoos.c
@@ -232,7 +232,7 @@ ager_start (void)
int ret = l4_thread_control (tid, l4_myself (),
l4_myself (),
- l4_pager (),
+ l4_myself (),
(void *) _L4_utcb_base () + l4_utcb_size ());
if (! ret)
panic ("Could not create ager thread (id=%x.%x): %s",
@@ -282,9 +282,9 @@ main (int argc, char *argv[])
/* We need to ensure that the whole binary is faulted in. sigma0 is
only willing to page the first thread. Since memory_configure
only grabs otherwise unreserved memory and the binary is
- reserved, we eithereither have to implement a pager for
- additional threads (e.g., the ager) or we just fault the binary
- in now. The latter is the easiest solution. */
+ reserved, we either have to implement a pager for additional
+ threads (e.g., the ager) or we just fault the binary in now. The
+ latter is the easiest solution. */
l4_word_t p;
for (p = (l4_word_t) &_start; p < (l4_word_t) &_end; p += PAGESIZE)
* (volatile l4_word_t *) p = *(l4_word_t *)p;
@@ -298,8 +298,4 @@ main (int argc, char *argv[])
/* And, start serving requests. */
server_loop ();
-
- /* Should never return. */
- panic ("server_loop returned!");
- return 0;
}