35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
# HG changeset patch
|
|
# User Ian Campbell <ian.campbell@xensource.com>
|
|
# Date Wed Oct 25 13:58:30 2006 +0100
|
|
# Node ID d30a4d4ccd94c41f607e54d2c2233f9be909dda7
|
|
# parent: 0886fc73e787076a7ee2247e71da68f48d311e0b
|
|
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>
|
|
|
|
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c Wed Oct 25 13:58:30 2006 +0100
|
|
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c Wed Oct 25 13:58:30 2006 +0100
|
|
@@ -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
|
|
|