summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/elf.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-10 16:29:05 +0400
committerPaul Mackerras <paulus@samba.org>2005-10-10 16:29:05 +0400
commit06d67d54741a5bfefa31945ef195dfa748c29025 (patch)
treeee47a8b2f86d927c930da5120659c086f9b5dc55 /include/asm-powerpc/elf.h
parentdaec962e27490be4fae9ab5a51d0c17f6e638715 (diff)
downloadlinux-06d67d54741a5bfefa31945ef195dfa748c29025.tar.xz
powerpc: make process.c suitable for both 32-bit and 64-bit
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/elf.h')
-rw-r--r--include/asm-powerpc/elf.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h
index f0a6779fbe52..d22b10021b5d 100644
--- a/include/asm-powerpc/elf.h
+++ b/include/asm-powerpc/elf.h
@@ -214,10 +214,8 @@ extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *);
but it's not easy, and we've already done it here. */
# define ELF_HWCAP (cur_cpu_spec->cpu_user_features)
#ifdef __powerpc64__
-# define ELF_PLAT_INIT(_r, load_addr) do { \
- memset(_r->gpr, 0, sizeof(_r->gpr)); \
- _r->ctr = _r->link = _r->xer = _r->ccr = 0; \
- _r->gpr[2] = load_addr; \
+# define ELF_PLAT_INIT(_r, load_addr) do { \
+ _r->gpr[2] = load_addr; \
} while (0)
#endif /* __powerpc64__ */