mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[SPARC]: Clean up asm-sparc/elf.h pollution in userspace.
We don't need to export sparc_elf_hwcap() to userspace, and it doesn't build there. Remove it by moving it inside #ifdef __KERNEL__, along with some other things which don't need to be exported. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6bda57365a
commit
6cf431d77c
1 changed files with 20 additions and 21 deletions
|
@ -8,11 +8,6 @@
|
||||||
|
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
#include <asm/mbus.h>
|
|
||||||
#include <asm/uaccess.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sparc section types
|
* Sparc section types
|
||||||
*/
|
*/
|
||||||
|
@ -77,6 +72,23 @@ typedef unsigned long elf_greg_t;
|
||||||
#define ELF_NGREG 38
|
#define ELF_NGREG 38
|
||||||
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
|
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
union {
|
||||||
|
unsigned long pr_regs[32];
|
||||||
|
double pr_dregs[16];
|
||||||
|
} pr_fr;
|
||||||
|
unsigned long __unused;
|
||||||
|
unsigned long pr_fsr;
|
||||||
|
unsigned char pr_qcnt;
|
||||||
|
unsigned char pr_q_entrysize;
|
||||||
|
unsigned char pr_en;
|
||||||
|
unsigned int pr_q[64];
|
||||||
|
} elf_fpregset_t;
|
||||||
|
|
||||||
|
#ifdef __KERNEL__
|
||||||
|
#include <asm/mbus.h>
|
||||||
|
#include <asm/uaccess.h>
|
||||||
|
|
||||||
/* Format is:
|
/* Format is:
|
||||||
* G0 --> G7
|
* G0 --> G7
|
||||||
* O0 --> O7
|
* O0 --> O7
|
||||||
|
@ -99,20 +111,7 @@ do { unsigned long *dest = &(__elf_regs[0]); \
|
||||||
dest[34] = src->npc; \
|
dest[34] = src->npc; \
|
||||||
dest[35] = src->y; \
|
dest[35] = src->y; \
|
||||||
dest[36] = dest[37] = 0; /* XXX */ \
|
dest[36] = dest[37] = 0; /* XXX */ \
|
||||||
} while(0); /* Janitors: Don't touch this colon. */
|
} while(0); /* Janitors: Don't touch this semicolon. */
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
union {
|
|
||||||
unsigned long pr_regs[32];
|
|
||||||
double pr_dregs[16];
|
|
||||||
} pr_fr;
|
|
||||||
unsigned long __unused;
|
|
||||||
unsigned long pr_fsr;
|
|
||||||
unsigned char pr_qcnt;
|
|
||||||
unsigned char pr_q_entrysize;
|
|
||||||
unsigned char pr_en;
|
|
||||||
unsigned int pr_q[64];
|
|
||||||
} elf_fpregset_t;
|
|
||||||
|
|
||||||
#define ELF_CORE_COPY_TASK_REGS(__tsk, __elf_regs) \
|
#define ELF_CORE_COPY_TASK_REGS(__tsk, __elf_regs) \
|
||||||
({ ELF_CORE_COPY_REGS((*(__elf_regs)), (__tsk)->thread.kregs); 1; })
|
({ ELF_CORE_COPY_REGS((*(__elf_regs)), (__tsk)->thread.kregs); 1; })
|
||||||
|
@ -165,8 +164,8 @@ typedef struct {
|
||||||
|
|
||||||
#define ELF_PLATFORM (NULL)
|
#define ELF_PLATFORM (NULL)
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
#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
|
|
||||||
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
#endif /* !(__ASMSPARC_ELF_H) */
|
#endif /* !(__ASMSPARC_ELF_H) */
|
||||||
|
|
Loading…
Reference in a new issue