aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/platform-pci
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2006-10-25 13:58:30 +0100
committerIan Campbell <ian.campbell@xensource.com>2006-10-25 13:58:30 +0100
commitcd77de667312b7d3c1117a019d1b183b36e16604 (patch)
tree773467ccb52a1799a902e2414210fddf5e49024d /unmodified_drivers/linux-2.6/platform-pci
parente46b787ee33cfbec5438c60ada2014184bf0abf0 (diff)
downloadxen-cd77de667312b7d3c1117a019d1b183b36e16604.tar.gz
xen-cd77de667312b7d3c1117a019d1b183b36e16604.tar.bz2
xen-cd77de667312b7d3c1117a019d1b183b36e16604.zip
PV-on-HVM: Implement and export a compatibility version of do_exit().
Kernels prior to 2.6.12 did not export do_exit(). Signed-off-by: Ian Campbell <ian.campbell@xensource.com> Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com> Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/platform-pci')
-rw-r--r--unmodified_drivers/linux-2.6/platform-pci/platform-compat.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
index f13d54b15c..2df38d806b 100644
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
@@ -73,3 +73,18 @@ out:
}
EXPORT_SYMBOL(wait_for_completion_timeout);
#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)
+/*
+ fake do_exit using complete_and_exit
+ */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
+asmlinkage NORET_TYPE void do_exit(long code)
+#else
+fastcall NORET_TYPE void do_exit(long code)
+#endif
+{
+ complete_and_exit(NULL, code);
+}
+EXPORT_SYMBOL_GPL(do_exit);
+#endif