diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-avr32/page.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/asm-avr32/page.h b/include/asm-avr32/page.h index 5582968feee8..cbbc5ca9728b 100644 --- a/include/asm-avr32/page.h +++ b/include/asm-avr32/page.h | |||
@@ -8,13 +8,11 @@ | |||
8 | #ifndef __ASM_AVR32_PAGE_H | 8 | #ifndef __ASM_AVR32_PAGE_H |
9 | #define __ASM_AVR32_PAGE_H | 9 | #define __ASM_AVR32_PAGE_H |
10 | 10 | ||
11 | #include <linux/const.h> | ||
12 | |||
11 | /* PAGE_SHIFT determines the page size */ | 13 | /* PAGE_SHIFT determines the page size */ |
12 | #define PAGE_SHIFT 12 | 14 | #define PAGE_SHIFT 12 |
13 | #ifdef __ASSEMBLY__ | 15 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
14 | #define PAGE_SIZE (1 << PAGE_SHIFT) | ||
15 | #else | ||
16 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | ||
17 | #endif | ||
18 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 16 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
19 | #define PTE_MASK PAGE_MASK | 17 | #define PTE_MASK PAGE_MASK |
20 | 18 | ||