mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-05 23:04:09 +00:00
MIPS: page.h: Provide more readable definition for PAGE_MASK.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
a2c763e074
commit
c17a655478
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
||||||
#define PAGE_SHIFT 16
|
#define PAGE_SHIFT 16
|
||||||
#endif
|
#endif
|
||||||
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
||||||
#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
|
#define PAGE_MASK (~(PAGE_SIZE - 1))
|
||||||
|
|
||||||
#ifdef CONFIG_HUGETLB_PAGE
|
#ifdef CONFIG_HUGETLB_PAGE
|
||||||
#define HPAGE_SHIFT (PAGE_SHIFT + PAGE_SHIFT - 3)
|
#define HPAGE_SHIFT (PAGE_SHIFT + PAGE_SHIFT - 3)
|
||||||
|
|
Loading…
Add table
Reference in a new issue