Add a PAGESHIFT definition
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: David Quigley <david.quigley@intel.com> Closes #598
This commit is contained in:
parent
f5c5286daa
commit
43b857fddb
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue