diff options
Diffstat (limited to 'arch/mips/include/uapi/asm/mman.h')
| -rw-r--r-- | arch/mips/include/uapi/asm/mman.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/include/uapi/asm/mman.h b/arch/mips/include/uapi/asm/mman.h index 46d3da0d4b9..9a936ac9a94 100644 --- a/arch/mips/include/uapi/asm/mman.h +++ b/arch/mips/include/uapi/asm/mman.h @@ -87,4 +87,15 @@  /* compatibility flags */  #define MAP_FILE	0 +/* + * When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size. + * This gives us 6 bits, which is enough until someone invents 128 bit address + * spaces. + * + * Assume these are all power of twos. + * When 0 use the default page size. + */ +#define MAP_HUGE_SHIFT	26 +#define MAP_HUGE_MASK	0x3f +  #endif /* _ASM_MMAN_H */  |