diff options
Diffstat (limited to 'include/asm-powerpc/elf.h')
-rw-r--r-- | include/asm-powerpc/elf.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h index 36b9d5cec50c..f0a6779fbe52 100644 --- a/include/asm-powerpc/elf.h +++ b/include/asm-powerpc/elf.h | |||
@@ -212,15 +212,13 @@ extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); | |||
212 | /* ELF_HWCAP yields a mask that user programs can use to figure out what | 212 | /* ELF_HWCAP yields a mask that user programs can use to figure out what |
213 | instruction set this cpu supports. This could be done in userspace, | 213 | instruction set this cpu supports. This could be done in userspace, |
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 | #ifdef __powerpc64__ | ||
216 | # define ELF_HWCAP (cur_cpu_spec->cpu_user_features) | 215 | # define ELF_HWCAP (cur_cpu_spec->cpu_user_features) |
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 | memset(_r->gpr, 0, sizeof(_r->gpr)); \ |
219 | _r->ctr = _r->link = _r->xer = _r->ccr = 0; \ | 219 | _r->ctr = _r->link = _r->xer = _r->ccr = 0; \ |
220 | _r->gpr[2] = load_addr; \ | 220 | _r->gpr[2] = load_addr; \ |
221 | } while (0) | 221 | } while (0) |
222 | #else | ||
223 | # define ELF_HWCAP (cur_cpu_spec[0]->cpu_user_features) | ||
224 | #endif /* __powerpc64__ */ | 222 | #endif /* __powerpc64__ */ |
225 | 223 | ||
226 | /* This yields a string that ld.so will use to load implementation | 224 | /* This yields a string that ld.so will use to load implementation |