diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2006-10-25 13:58:30 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2006-10-25 13:58:30 +0100 |
commit | cd77de667312b7d3c1117a019d1b183b36e16604 (patch) | |
tree | 773467ccb52a1799a902e2414210fddf5e49024d /unmodified_drivers/linux-2.6/platform-pci/platform-compat.c | |
parent | e46b787ee33cfbec5438c60ada2014184bf0abf0 (diff) | |
download | xen-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/platform-compat.c')
-rw-r--r-- | unmodified_drivers/linux-2.6/platform-pci/platform-compat.c | 15 |
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 |