forked from Minki/linux
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>
This commit is contained in:
parent
d1cdcf2241
commit
178f8d78fd
@ -224,8 +224,6 @@ extern int dump_task_altivec(struct task_struct *, elf_vrregset_t *vrregs);
|
|||||||
#define ELF_CORE_XFPREG_TYPE NT_PPC_VMX
|
#define ELF_CORE_XFPREG_TYPE NT_PPC_VMX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
/* ELF_HWCAP yields a mask that user programs can use to figure out what
|
/* ELF_HWCAP yields a mask that user programs can use to figure out what
|
||||||
instruction set this cpu supports. This could be done in userspace,
|
instruction set this cpu supports. This could be done in userspace,
|
||||||
but it's not easy, and we've already done it here. */
|
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);
|
|||||||
} while (0)
|
} while (0)
|
||||||
#endif /* __powerpc64__ */
|
#endif /* __powerpc64__ */
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
|
|
||||||
#ifdef __powerpc64__
|
#ifdef __powerpc64__
|
||||||
# define SET_PERSONALITY(ex, ibcs2) \
|
# define SET_PERSONALITY(ex, ibcs2) \
|
||||||
do { \
|
do { \
|
||||||
@ -272,8 +268,6 @@ do { \
|
|||||||
# define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
|
# define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
|
||||||
#endif /* __powerpc64__ */
|
#endif /* __powerpc64__ */
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
|
||||||
|
|
||||||
extern int dcache_bsize;
|
extern int dcache_bsize;
|
||||||
extern int icache_bsize;
|
extern int icache_bsize;
|
||||||
extern int ucache_bsize;
|
extern int ucache_bsize;
|
||||||
@ -285,6 +279,8 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
|
|||||||
int executable_stack);
|
int executable_stack);
|
||||||
#define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b);
|
#define VDSO_AUX_ENT(a,b) NEW_AUX_ENT(a,b);
|
||||||
|
|
||||||
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The requirements here are:
|
* The requirements here are:
|
||||||
* - keep the final alignment of sp (sp & 0xf)
|
* - keep the final alignment of sp (sp & 0xf)
|
||||||
@ -422,6 +418,8 @@ do { \
|
|||||||
/* Keep this the last entry. */
|
/* Keep this the last entry. */
|
||||||
#define R_PPC64_NUM 107
|
#define R_PPC64_NUM 107
|
||||||
|
|
||||||
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
#ifdef CONFIG_SPU_BASE
|
#ifdef CONFIG_SPU_BASE
|
||||||
/* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */
|
/* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */
|
||||||
#define NT_SPU 1
|
#define NT_SPU 1
|
||||||
@ -430,4 +428,6 @@ do { \
|
|||||||
|
|
||||||
#endif /* CONFIG_SPU_BASE */
|
#endif /* CONFIG_SPU_BASE */
|
||||||
|
|
||||||
|
#endif /* __KERNEL */
|
||||||
|
|
||||||
#endif /* _ASM_POWERPC_ELF_H */
|
#endif /* _ASM_POWERPC_ELF_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user