2012-06-11 16:07:46 +02:00
|
|
|
Index: xen-4.1.2-testing/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
|
|
|
|
===================================================================
|
2012-03-13 18:17:31 +01:00
|
|
|
--- xen-4.1.2-testing.orig/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
|
|
|
|
+++ xen-4.1.2-testing/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
|
|
|
|
@@ -161,4 +161,14 @@ typedef irqreturn_t (*irq_handler_t)(int
|
|
|
|
#define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef sync_test_bit
|
|
|
|
+#define synch_change_bit sync_change_bit
|
|
|
|
+#define synch_clear_bit sync_clear_bit
|
|
|
|
+#define synch_set_bit sync_set_bit
|
|
|
|
+#define synch_test_and_change_bit sync_test_and_change_bit
|
|
|
|
+#define synch_test_and_clear_bit sync_test_and_clear_bit
|
|
|
|
+#define synch_test_and_set_bit sync_test_and_set_bit
|
|
|
|
+#define synch_test_bit sync_test_bit
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#endif
|
2012-06-11 16:07:46 +02:00
|
|
|
Index: xen-4.1.2-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
|
|
===================================================================
|
2011-09-15 23:43:21 +02:00
|
|
|
--- xen-4.1.2-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
|
|
+++ xen-4.1.2-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
2012-06-11 16:07:46 +02:00
|
|
|
@@ -122,6 +122,7 @@ unsigned long alloc_xen_mmio(unsigned lo
|
2011-03-21 17:47:37 +01:00
|
|
|
|
|
|
|
#ifndef __ia64__
|
|
|
|
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
|
|
|
|
static uint32_t xen_cpuid_base(void)
|
|
|
|
{
|
|
|
|
uint32_t base, eax, ebx, ecx, edx;
|
2012-06-11 16:07:46 +02:00
|
|
|
@@ -140,6 +141,7 @@ static uint32_t xen_cpuid_base(void)
|
2011-03-21 17:47:37 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static int init_hypercall_stubs(void)
|
|
|
|
{
|