summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Quigley <[email protected]>2017-01-31 11:36:18 -0700
committerBrian Behlendorf <[email protected]>2017-01-31 10:36:18 -0800
commit43b857fddb0aa0a2fef1e00c696a80056c6367a8 (patch)
treef9d983a2d1bdcbac0860ff81b71ab6502ae176b5
parentf5c5286daa5f76532d7a8a7988d6a42cfd58038c (diff)
Add a PAGESHIFT definition
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: David Quigley <[email protected]> Closes #598
-rw-r--r--include/sys/sysmacros.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h
index f6b1e28e8..a4a9f3e98 100644
--- a/include/sys/sysmacros.h
+++ b/include/sys/sysmacros.h
@@ -32,6 +32,7 @@
#include <sys/varargs.h>
#include <sys/zone.h>
#include <sys/signal.h>
+#include <asm/page.h>
#ifdef HAVE_SCHED_RT_HEADER
#include <linux/sched/rt.h>
@@ -111,6 +112,10 @@
#define PAGESIZE PAGE_SIZE
#endif
+#ifndef PAGESHIFT
+#define PAGESHIFT PAGE_SHIFT
+#endif
+
/* from Solaris sys/byteorder.h */
#define BSWAP_8(x) ((x) & 0xff)
#define BSWAP_16(x) ((BSWAP_8(x) << 8) | BSWAP_8((x) >> 8))