aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-06-23 13:48:28 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-30 21:28:15 -0400
commit178f8d78fdeaace8b22a759a059b74f39caf23a4 (patch)
treeb2c7561f04f86944aa76206495fe02a3f5aa8e6d /include/asm-powerpc
parentd1cdcf2241723d6596d56abb8777b5ef79b4a878 (diff)
powerpc: asm/elf.h: Reduce userspace header
This makes asm/elf.h export less non-userspace stuff to userspace. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/elf.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h
index 9080d85cb9d0..d1e3bda0625d 100644
--- a/include/asm-powerpc/elf.h
+++ b/include/asm-powerpc/elf.h
@@ -224,8 +224,6 @@ extern int dump_task_altivec(struct task_struct *, elf_vrregset_t *vrregs);
224#define ELF_CORE_XFPREG_TYPE NT_PPC_VMX 224#define ELF_CORE_XFPREG_TYPE NT_PPC_VMX
225#endif 225#endif
226 226
227#endif /* __KERNEL__ */
228
229/* ELF_HWCAP yields a mask that user programs can use to figure out what 227/* ELF_HWCAP yields a mask that user programs can use to figure out what
230 instruction set this cpu supports. This could be done in userspace, 228 instruction set this cpu supports. This could be done in userspace,
231 but it's not easy, and we've already done it here. */ 229 but it's not easy, and we've already done it here. */
@@ -243,8 +241,6 @@ extern int dump_task_altivec(struct task_struct *, elf_vrregset_t *vrregs);
243} while (0) 241} while (0)
244#endif /* __powerpc64__ */ 242#endif /* __powerpc64__ */
245 243
246#ifdef __KERNEL__
247
248#ifdef __powerpc64__ 244#ifdef __powerpc64__
249# define SET_PERSONALITY(ex, ibcs2) \ 245# define SET_PERSONALITY(ex, ibcs2) \
250do { \ 246do { \
@@ -272,8 +268,6 @@ do { \
272# define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) 268# define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
273#endif /* __powerpc64__ */ 269#endif /* __powerpc64__ */
274 270
275#endif /* __KERNEL__ */
276
277extern int dcache_bsize; 271extern int dcache_bsize;
278extern int icache_bsize; 272extern int icache_bsize;
279extern int ucache_bsize; 273extern int ucache_bsize;
@@ -285,6 +279,8 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
285 int executable_stack); 279 int executable_stack);
286#define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b); 280#define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b);
287 281
282#endif /* __KERNEL__ */
283
288/* 284/*
289 * The requirements here are: 285 * The requirements here are:
290 * - keep the final alignment of sp (sp & 0xf) 286 * - keep the final alignment of sp (sp & 0xf)
@@ -422,6 +418,8 @@ do { \
422/* Keep this the last entry. */ 418/* Keep this the last entry. */
423#define R_PPC64_NUM 107 419#define R_PPC64_NUM 107
424 420
421#ifdef __KERNEL__
422
425#ifdef CONFIG_SPU_BASE 423#ifdef CONFIG_SPU_BASE
426/* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */ 424/* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */
427#define NT_SPU 1 425#define NT_SPU 1
@@ -430,4 +428,6 @@ do { \
430 428
431#endif /* CONFIG_SPU_BASE */ 429#endif /* CONFIG_SPU_BASE */
432 430
431#endif /* __KERNEL */
432
433#endif /* _ASM_POWERPC_ELF_H */ 433#endif /* _ASM_POWERPC_ELF_H */