diff options
author | Olof Johansson <olof@lixom.net> | 2005-09-20 07:47:41 +0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-21 13:21:07 +0400 |
commit | 637a6ff6ce525d8495df944550efea0f023dd521 (patch) | |
tree | f4d31da12a348ecf9136cef8f5986172d6af6003 /include/asm-ppc64/elf.h | |
parent | d0035c62d9145a2ce3057c8182a7ff0b4921a41c (diff) | |
download | linux-637a6ff6ce525d8495df944550efea0f023dd521.tar.xz |
[PATCH] ppc64: Updated Olof misc updates 3/3
Replace some of the hard-coded constants with PAGE_SIZE/SHIFT/ORDER where
appropriate.
Likewise, in a couple of places it doesn't make sense to base some
allocations on page size when all that's required is a constant 4K,
etc.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/elf.h')
-rw-r--r-- | include/asm-ppc64/elf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-ppc64/elf.h b/include/asm-ppc64/elf.h index c919a89343db..e27c2942953c 100644 --- a/include/asm-ppc64/elf.h +++ b/include/asm-ppc64/elf.h @@ -5,6 +5,7 @@ #include <asm/ptrace.h> #include <asm/cputable.h> #include <asm/auxvec.h> +#include <asm/page.h> /* PowerPC relocations defined by the ABIs */ #define R_PPC_NONE 0 @@ -146,7 +147,7 @@ typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32]; #define elf_check_arch(x) ((x)->e_machine == ELF_ARCH) #define USE_ELF_CORE_DUMP -#define ELF_EXEC_PAGESIZE 4096 +#define ELF_EXEC_PAGESIZE PAGE_SIZE /* This is the location that an ET_DYN program is loaded if exec'ed. Typical use of this is to invoke "./ld.so someprog" to test out a new version of |