From: kaf24@firebug.cl.cam.ac.uk Date: Tue, 13 Jun 2006 15:07:16 +0000 (+0100) Subject: [MINI-OS] Applications that provide their own app_main need not run the xenbus test. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15955^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0708c1f9a07ef5f6c884202bc3f07a63ce1862ed;p=xen.git [MINI-OS] Applications that provide their own app_main need not run the xenbus test. Signed-of-by: John D. Ramsdell --- diff --git a/extras/mini-os/kernel.c b/extras/mini-os/kernel.c index 52e919e9a4..1a7748fe0d 100644 --- a/extras/mini-os/kernel.c +++ b/extras/mini-os/kernel.c @@ -82,17 +82,6 @@ static shared_info_t *map_shared_info(unsigned long pa) } -void test_xenbus(void); - -/* Do initialisation from a thread once the scheduler's available */ -static void init_xs(void *ign) -{ - init_xenbus(); - - test_xenbus(); -} - - u8 xen_features[XENFEAT_NR_SUBMAPS * 32]; void setup_xen_features(void) @@ -111,10 +100,18 @@ void setup_xen_features(void) } } +void test_xenbus(void); + +void xenbus_tester(void *p) +{ + test_xenbus(); +} + /* 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); return 0; } @@ -183,8 +180,8 @@ void start_kernel(start_info_t *si) /* Init scheduler. */ init_sched(); - /* Init XenBus from a separate thread */ - create_thread("init_xs", init_xs, NULL); + /* Init XenBus */ + init_xenbus(); /* Call (possibly overridden) app_main() */ app_main(&start_info);