aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
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
commitf3bebe5fecaa3bcee1f21fe528c0de85725d7715 (patch)
tree15749d42fcf78574a8eadff624e1295f4248cb98 /unmodified_drivers
parentc957115a57ccc35365571c1950ef903fab95a434 (diff)
downloadxen-f3bebe5fecaa3bcee1f21fe528c0de85725d7715.tar.gz
xen-f3bebe5fecaa3bcee1f21fe528c0de85725d7715.tar.bz2
xen-f3bebe5fecaa3bcee1f21fe528c0de85725d7715.zip
PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior
to 2.6.7. These kernels did not export the system_state variable to modules. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/platform-pci/platform-compat.c7
1 files changed, 7 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 61ae10dba1..c6fa5b81da 100644
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
@@ -1,4 +1,11 @@
#include <linux/config.h>
#include <linux/version.h>
+#include <linux/module.h>
+
#include <xen/platform-compat.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
+static int system_state = 1;
+EXPORT_SYMBOL(system_state);
+#endif