aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-11-30 21:51:17 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-11-30 21:51:17 +0000
commitc2115276c118b4f279fd0662af1a2fa60fc711a3 (patch)
tree9f643e497f3d857a6db1de20d9969129e702d5ba /extras
parent24aef697e5bd2244bc71b454bf061a090fa0514b (diff)
downloadxen-c2115276c118b4f279fd0662af1a2fa60fc711a3.tar.gz
xen-c2115276c118b4f279fd0662af1a2fa60fc711a3.tar.bz2
xen-c2115276c118b4f279fd0662af1a2fa60fc711a3.zip
mini-os: shutdown_thread depends on xenbus
This fixes the build of the xenstore stub domain, which should never be shut down and so does not need this feature. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'extras')
-rw-r--r--extras/mini-os/kernel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/mini-os/kernel.c b/extras/mini-os/kernel.c
index 378ce1202f..f2f70f6c15 100644
--- a/extras/mini-os/kernel.c
+++ b/extras/mini-os/kernel.c
@@ -68,6 +68,7 @@ void setup_xen_features(void)
}
}
+#ifdef CONFIG_XENBUS
static void shutdown_thread(void *p)
{
const char *path = "control/shutdown";
@@ -96,6 +97,7 @@ static void shutdown_thread(void *p)
wmb();
wake_up(&shutdown_queue);
}
+#endif
/* This should be overridden by the application we are linked against. */
@@ -160,7 +162,9 @@ void start_kernel(start_info_t *si)
/* Init XenBus */
init_xenbus();
+#ifdef CONFIG_XENBUS
create_thread("shutdown", shutdown_thread, NULL);
+#endif
/* Call (possibly overridden) app_main() */
app_main(&start_info);