Commit 8c12b5dc13bf8516303a8224ab4e9708b33d5b00
1 parent
28ccf7f91b
Exists in
master
and in
7 other branches
sh: Clean up PAGE_SIZE definition for assembly use.
We want to be able to use PAGE_SIZE all over the place, this is the same approach adopted by other architectures.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
include/asm-sh/page.h
... | ... | @@ -16,7 +16,13 @@ |
16 | 16 | |
17 | 17 | /* PAGE_SHIFT determines the page size */ |
18 | 18 | #define PAGE_SHIFT 12 |
19 | + | |
20 | +#ifdef __ASSEMBLY__ | |
19 | 21 | #define PAGE_SIZE (1 << PAGE_SHIFT) |
22 | +#else | |
23 | +#define PAGE_SIZE (1UL << PAGE_SHIFT) | |
24 | +#endif | |
25 | + | |
20 | 26 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
21 | 27 | #define PTE_MASK PAGE_MASK |
22 | 28 |