diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-10-12 16:11:50 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-10-12 16:13:10 +0200 |
commit | 52480ee5206a3fe3a61b5529ce063202c60b8b27 (patch) | |
tree | 8bc71c234f0ca63022327b10cbd627ea3762ad0c /include/asm-s390 | |
parent | e16af09d76ac3322e26f5b3ff49979691f350c12 (diff) | |
download | kernel_samsung_tuna-52480ee5206a3fe3a61b5529ce063202c60b8b27.zip kernel_samsung_tuna-52480ee5206a3fe3a61b5529ce063202c60b8b27.tar.gz kernel_samsung_tuna-52480ee5206a3fe3a61b5529ce063202c60b8b27.tar.bz2 |
[S390] s390: use PAGE_SIZE in vmlinux.lds
Replace the hardcoded 4096 value with the PAGE_SIZE macro.
Converted a few decimal numbers to readable hex numbers.
Use of PAGE_SIZE required a small change to page.h
to allow PAGE_SIZE to be used from assembler/linker scripts.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/page.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-s390/page.h b/include/asm-s390/page.h index f326451..ceec382 100644 --- a/include/asm-s390/page.h +++ b/include/asm-s390/page.h @@ -9,11 +9,12 @@ #ifndef _S390_PAGE_H #define _S390_PAGE_H +#include <linux/const.h> #include <asm/types.h> /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT 12 -#define PAGE_SIZE (1UL << PAGE_SHIFT) +#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) #define PAGE_DEFAULT_ACC 0 #define PAGE_DEFAULT_KEY (PAGE_DEFAULT_ACC << 4) |