aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/page.h')
-rw-r--r--include/asm-sh/page.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h
index 304c30b5d947..77fb8bf02e4e 100644
--- a/include/asm-sh/page.h
+++ b/include/asm-sh/page.h
@@ -12,6 +12,8 @@
12# define PAGE_SHIFT 12 12# define PAGE_SHIFT 12
13#elif defined(CONFIG_PAGE_SIZE_8KB) 13#elif defined(CONFIG_PAGE_SIZE_8KB)
14# define PAGE_SHIFT 13 14# define PAGE_SHIFT 13
15#elif defined(CONFIG_PAGE_SIZE_16KB)
16# define PAGE_SHIFT 14
15#elif defined(CONFIG_PAGE_SIZE_64KB) 17#elif defined(CONFIG_PAGE_SIZE_64KB)
16# define PAGE_SHIFT 16 18# define PAGE_SHIFT 16
17#else 19#else
@@ -22,9 +24,6 @@
22#define PAGE_MASK (~(PAGE_SIZE-1)) 24#define PAGE_MASK (~(PAGE_SIZE-1))
23#define PTE_MASK PAGE_MASK 25#define PTE_MASK PAGE_MASK
24 26
25/* to align the pointer to the (next) page boundary */
26#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)
27
28#if defined(CONFIG_HUGETLB_PAGE_SIZE_64K) 27#if defined(CONFIG_HUGETLB_PAGE_SIZE_64K)
29#define HPAGE_SHIFT 16 28#define HPAGE_SHIFT 16
30#elif defined(CONFIG_HUGETLB_PAGE_SIZE_256K) 29#elif defined(CONFIG_HUGETLB_PAGE_SIZE_256K)