Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40063
b: refs/heads/master
c: 6cf431d
h: refs/heads/master
i:
  40061: 8db679f
  40059: 73eebfa
  40055: 0332910
  40047: c9b9da4
  40031: 18b265a
  39999: b493e65
  39935: b6c8e1c
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Oct 20, 2006
1 parent f3b9d13 commit 4997629
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6bda57365a5fda4743d83a5987c6aab66e90771c
refs/heads/master: 6cf431d77c3e917399a847e3a7ec239d5163056b
41 changes: 20 additions & 21 deletions trunk/include/asm-sparc/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

#include <asm/ptrace.h>

#ifdef __KERNEL__
#include <asm/mbus.h>
#include <asm/uaccess.h>
#endif

/*
* Sparc section types
*/
Expand Down Expand Up @@ -77,6 +72,23 @@ typedef unsigned long elf_greg_t;
#define ELF_NGREG 38
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:
* G0 --> G7
* O0 --> O7
Expand All @@ -99,20 +111,7 @@ do { unsigned long *dest = &(__elf_regs[0]); \
dest[34] = src->npc; \
dest[35] = src->y; \
dest[36] = dest[37] = 0; /* XXX */ \
} while(0); /* Janitors: Don't touch this colon. */

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;
} while(0); /* Janitors: Don't touch this semicolon. */

#define ELF_CORE_COPY_TASK_REGS(__tsk, __elf_regs) \
({ ELF_CORE_COPY_REGS((*(__elf_regs)), (__tsk)->thread.kregs); 1; })
Expand Down Expand Up @@ -165,8 +164,8 @@ typedef struct {

#define ELF_PLATFORM (NULL)

#ifdef __KERNEL__
#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
#endif

#endif /* __KERNEL__ */

#endif /* !(__ASMSPARC_ELF_H) */

0 comments on commit 4997629

Please sign in to comment.