diff options
Diffstat (limited to 'include/asm-powerpc/elf.h')
-rw-r--r-- | include/asm-powerpc/elf.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h index 3dcd65edf978..94d228f9c6ac 100644 --- a/include/asm-powerpc/elf.h +++ b/include/asm-powerpc/elf.h | |||
@@ -1,7 +1,10 @@ | |||
1 | #ifndef _ASM_POWERPC_ELF_H | 1 | #ifndef _ASM_POWERPC_ELF_H |
2 | #define _ASM_POWERPC_ELF_H | 2 | #define _ASM_POWERPC_ELF_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
4 | #include <linux/sched.h> /* for task_struct */ | 5 | #include <linux/sched.h> /* for task_struct */ |
6 | #endif | ||
7 | |||
5 | #include <asm/types.h> | 8 | #include <asm/types.h> |
6 | #include <asm/ptrace.h> | 9 | #include <asm/ptrace.h> |
7 | #include <asm/cputable.h> | 10 | #include <asm/cputable.h> |
@@ -89,7 +92,6 @@ | |||
89 | * as published by the Free Software Foundation; either version | 92 | * as published by the Free Software Foundation; either version |
90 | * 2 of the License, or (at your option) any later version. | 93 | * 2 of the License, or (at your option) any later version. |
91 | */ | 94 | */ |
92 | #include <asm/ptrace.h> | ||
93 | 95 | ||
94 | #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */ | 96 | #define ELF_NGREG 48 /* includes nip, msr, lr, etc. */ |
95 | #define ELF_NFPREG 33 /* includes fpscr */ | 97 | #define ELF_NFPREG 33 /* includes fpscr */ |
@@ -219,20 +221,18 @@ extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); | |||
219 | instruction set this cpu supports. This could be done in userspace, | 221 | instruction set this cpu supports. This could be done in userspace, |
220 | but it's not easy, and we've already done it here. */ | 222 | but it's not easy, and we've already done it here. */ |
221 | # define ELF_HWCAP (cur_cpu_spec->cpu_user_features) | 223 | # define ELF_HWCAP (cur_cpu_spec->cpu_user_features) |
222 | #ifdef __powerpc64__ | ||
223 | # define ELF_PLAT_INIT(_r, load_addr) do { \ | ||
224 | _r->gpr[2] = load_addr; \ | ||
225 | } while (0) | ||
226 | #endif /* __powerpc64__ */ | ||
227 | 224 | ||
228 | /* This yields a string that ld.so will use to load implementation | 225 | /* This yields a string that ld.so will use to load implementation |
229 | specific libraries for optimization. This is more specific in | 226 | specific libraries for optimization. This is more specific in |
230 | intent than poking at uname or /proc/cpuinfo. | 227 | intent than poking at uname or /proc/cpuinfo. */ |
231 | 228 | ||
232 | For the moment, we have only optimizations for the Intel generations, | 229 | #define ELF_PLATFORM (cur_cpu_spec->platform) |
233 | but that could change... */ | ||
234 | 230 | ||
235 | #define ELF_PLATFORM (NULL) | 231 | #ifdef __powerpc64__ |
232 | # define ELF_PLAT_INIT(_r, load_addr) do { \ | ||
233 | _r->gpr[2] = load_addr; \ | ||
234 | } while (0) | ||
235 | #endif /* __powerpc64__ */ | ||
236 | 236 | ||
237 | #ifdef __KERNEL__ | 237 | #ifdef __KERNEL__ |
238 | 238 | ||