summaryrefslogtreecommitdiff
path: root/lib/intel_aux_pgtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/intel_aux_pgtable.c')
-rw-r--r--lib/intel_aux_pgtable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/intel_aux_pgtable.c b/lib/intel_aux_pgtable.c
index fcd24f08..db5055c8 100644
--- a/lib/intel_aux_pgtable.c
+++ b/lib/intel_aux_pgtable.c
@@ -9,9 +9,9 @@
#include "i915/gem_mman.h"
-#define BITS_PER_LONG (sizeof(long) * 8)
-#define BITMASK(e, s) ((~0UL << (s)) & \
- (~0UL >> (BITS_PER_LONG - 1 - (e))))
+#define BITS_PER_LONG_LONG (sizeof(long long) * 8)
+#define BITMASK(e, s) ((~0ULL << (s)) & \
+ (~0ULL >> (BITS_PER_LONG_LONG - 1 - (e))))
/* The unit size to which the AUX CCS surface is aligned to. */
#define AUX_CCS_UNIT_SIZE 64