diff options
author | Tim Abbott <tabbott@ksplice.com> | 2009-09-18 16:32:44 -0400 |
---|---|---|
committer | Hirokazu Takata <takata@linux-m32r.org> | 2009-09-22 11:29:38 -0400 |
commit | 8b1c9befbfbd443bd95e77db01c70f1741aa2511 (patch) | |
tree | 0294a14d49ac0486100b2483bef00530985b0653 /arch/m32r | |
parent | 43c1266ce4dc06bfd236cec31e11e9ecd69c0bef (diff) |
m32r: make PAGE_SIZE available to assembly.
page.h includes ifndef __ASSEMBLY__ guards, but PAGE_SIZE is defined
using "1UL", which the assembler does not support. Use the _AC macro
from const.h to make it available to assembly (and linker scripts).
Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/include/asm/page.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m32r/include/asm/page.h b/arch/m32r/include/asm/page.h index 11777f7a5628..725ede8f2889 100644 --- a/arch/m32r/include/asm/page.h +++ b/arch/m32r/include/asm/page.h | |||
@@ -1,9 +1,11 @@ | |||
1 | #ifndef _ASM_M32R_PAGE_H | 1 | #ifndef _ASM_M32R_PAGE_H |
2 | #define _ASM_M32R_PAGE_H | 2 | #define _ASM_M32R_PAGE_H |
3 | 3 | ||
4 | #include <linux/const.h> | ||
5 | |||
4 | /* PAGE_SHIFT determines the page size */ | 6 | /* PAGE_SHIFT determines the page size */ |
5 | #define PAGE_SHIFT 12 | 7 | #define PAGE_SHIFT 12 |
6 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 8 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
7 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 9 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
8 | 10 | ||
9 | #ifndef __ASSEMBLY__ | 11 | #ifndef __ASSEMBLY__ |