diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/elf.h | 6 |
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 *); | |||
214 | but it's not easy, and we've already done it here. */ | 214 | but it's not easy, and we've already done it here. */ |
215 | # define ELF_HWCAP (cur_cpu_spec->cpu_user_features) | 215 | # define ELF_HWCAP (cur_cpu_spec->cpu_user_features) |
216 | #ifdef __powerpc64__ | 216 | #ifdef __powerpc64__ |
217 | # define ELF_PLAT_INIT(_r, load_addr) do { \ | 217 | # define ELF_PLAT_INIT(_r, load_addr) do { \ |
218 | memset(_r->gpr, 0, sizeof(_r->gpr)); \ | 218 | _r->gpr[2] = load_addr; \ |
219 | _r->ctr = _r->link = _r->xer = _r->ccr = 0; \ | ||
220 | _r->gpr[2] = load_addr; \ | ||
221 | } while (0) | 219 | } while (0) |
222 | #endif /* __powerpc64__ */ | 220 | #endif /* __powerpc64__ */ |
223 | 221 | ||