summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/i915_compat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/i915_compat.c b/linux-core/i915_compat.c
index f77260b1..cc024085 100644
--- a/linux-core/i915_compat.c
+++ b/linux-core/i915_compat.c
@@ -19,6 +19,10 @@
#define I915_IFPADDR 0x60
#define I965_IFPADDR 0x70
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
+#define upper_32_bits(_val) (((u64)(_val)) >> 32)
+#endif
+
static struct _i9xx_private_compat {
void __iomem *flush_page;
int resource_valid;