aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-10-18 03:04:34 -0400
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-18 03:59:15 -0400
commit1c593571093ae0f259d3bd7a66988a7a8eb5c7bc (patch)
tree0ce48386ab6e2752145dba8fa81bc5440eda0118 /include/asm-parisc
parentbe1b3d8cb141c0705d61af2e2372d72ff16c7d04 (diff)
[PARISC] Kill off ASM_PAGE_SIZE use
We have the macro _AC() generally available now so the calculation of PAGE_SIZE can be made assembler compatible. Introduce use of _AC() and kill all users of ASM_PAGE_SIZE. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'include/asm-parisc')
-rw-r--r--include/asm-parisc/page.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-parisc/page.h b/include/asm-parisc/page.h
index f6bba4c13664..b59a1504fc7a 100644
--- a/include/asm-parisc/page.h
+++ b/include/asm-parisc/page.h
@@ -3,6 +3,8 @@
3 3
4#ifdef __KERNEL__ 4#ifdef __KERNEL__
5 5
6#include <linux/const.h>
7
6#if defined(CONFIG_PARISC_PAGE_SIZE_4KB) 8#if defined(CONFIG_PARISC_PAGE_SIZE_4KB)
7# define PAGE_SHIFT 12 9# define PAGE_SHIFT 12
8#elif defined(CONFIG_PARISC_PAGE_SIZE_16KB) 10#elif defined(CONFIG_PARISC_PAGE_SIZE_16KB)
@@ -12,7 +14,7 @@
12#else 14#else
13# error "unknown default kernel page size" 15# error "unknown default kernel page size"
14#endif 16#endif
15#define PAGE_SIZE (1UL << PAGE_SHIFT) 17#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
16#define PAGE_MASK (~(PAGE_SIZE-1)) 18#define PAGE_MASK (~(PAGE_SIZE-1))
17 19
18 20