diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-12 15:18:24 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-12 15:18:24 +0000 |
commit | 2cf1159751904c81987cf135a8b4bc96994c06a9 (patch) | |
tree | 0b8e5436af1a8f74633eabb01bb0a47790dd58b7 /extras/mini-os/kernel.c | |
parent | 213d576165735d5c0beae359376b6e3e7d3cb8e5 (diff) | |
download | xen-2cf1159751904c81987cf135a8b4bc96994c06a9.tar.gz xen-2cf1159751904c81987cf135a8b4bc96994c06a9.tar.bz2 xen-2cf1159751904c81987cf135a8b4bc96994c06a9.zip |
[MINIOS] Implement a network frontend driver.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
Diffstat (limited to 'extras/mini-os/kernel.c')
-rw-r--r-- | extras/mini-os/kernel.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/extras/mini-os/kernel.c b/extras/mini-os/kernel.c index 0799116aa6..4594e25e3c 100644 --- a/extras/mini-os/kernel.c +++ b/extras/mini-os/kernel.c @@ -37,6 +37,7 @@ #include <sched.h> #include <xenbus.h> #include <gnttab.h> +#include <netfront.h> #include <xen/features.h> #include <xen/version.h> @@ -61,13 +62,13 @@ void setup_xen_features(void) void test_xenbus(void); -void xenbus_tester(void *p) +static void xenbus_tester(void *p) { printk("Xenbus tests disabled, because of a Xend bug.\n"); /* test_xenbus(); */ } -void periodic_thread(void *p) +static void periodic_thread(void *p) { struct timeval tv; printk("Periodic thread started.\n"); @@ -79,12 +80,18 @@ void periodic_thread(void *p) } } +static void netfront_thread(void *p) +{ + init_netfront(&start_info); +} + /* This should be overridden by the application we are linked against. */ __attribute__((weak)) int app_main(start_info_t *si) { printk("Dummy main: start_info=%p\n", si); create_thread("xenbus_tester", xenbus_tester, si); create_thread("periodic_thread", periodic_thread, si); + create_thread("netfront", netfront_thread, si); return 0; } |