summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2009-01-02 19:32:59 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-02 19:32:59 -0800
commit4d7b92ad572b4bd4d92fc80911641bb6cba3b99c (patch)
tree6257d1b4bad63a296f03abee8940222a979d8d2a /arch/sparc/include
parentece93487c31607558f4b91f378fcee4b43956dbc (diff)
downloadop-kernel-dev-4d7b92ad572b4bd4d92fc80911641bb6cba3b99c.zip
op-kernel-dev-4d7b92ad572b4bd4d92fc80911641bb6cba3b99c.tar.gz
sparc: add '32' suffix to reg_window, sigcontext, __siginfo_t
Renaming a few types to contain a 32 suffix makes the type names compatible with sparc64 and thus makes sharing between the two a lot easier. Note: None of these definitions are expected part of the stable ABI towards userspace. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r--arch/sparc/include/asm/processor_32.h2
-rw-r--r--arch/sparc/include/asm/ptrace_32.h2
-rw-r--r--arch/sparc/include/asm/sigcontext_32.h9
-rw-r--r--arch/sparc/include/asm/thread_info_32.h2
4 files changed, 6 insertions, 9 deletions
diff --git a/arch/sparc/include/asm/processor_32.h b/arch/sparc/include/asm/processor_32.h
index 2ae67a2..09521c6 100644
--- a/arch/sparc/include/asm/processor_32.h
+++ b/arch/sparc/include/asm/processor_32.h
@@ -99,7 +99,7 @@ static inline void start_thread(struct pt_regs * regs, unsigned long pc,
"st\t%%g0, [%0 + %3 + 0x3c]"
: /* no outputs */
: "r" (regs),
- "r" (sp - sizeof(struct reg_window)),
+ "r" (sp - sizeof(struct reg_window32)),
"r" (zero),
"i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0]))
: "memory");
diff --git a/arch/sparc/include/asm/ptrace_32.h b/arch/sparc/include/asm/ptrace_32.h
index 4cef450..acb2d89d 100644
--- a/arch/sparc/include/asm/ptrace_32.h
+++ b/arch/sparc/include/asm/ptrace_32.h
@@ -41,7 +41,7 @@ struct pt_regs {
#define UREG_RETPC UREG_I7
/* A register window */
-struct reg_window {
+struct reg_window32 {
unsigned long locals[8];
unsigned long ins[8];
};
diff --git a/arch/sparc/include/asm/sigcontext_32.h b/arch/sparc/include/asm/sigcontext_32.h
index c5fb60d..756e996 100644
--- a/arch/sparc/include/asm/sigcontext_32.h
+++ b/arch/sparc/include/asm/sigcontext_32.h
@@ -9,7 +9,7 @@
#define __SUNOS_MAXWIN 31
/* This is what SunOS does, so shall I. */
-struct sigcontext {
+struct sigcontext32 {
int sigc_onstack; /* state to restore */
int sigc_mask; /* sigmask to restore */
int sigc_sp; /* stack pointer */
@@ -28,10 +28,7 @@ struct sigcontext {
char *sigc_spbuf[__SUNOS_MAXWIN];
/* Windows to restore after signal */
- struct {
- unsigned long locals[8];
- unsigned long ins[8];
- } sigc_wbuf[__SUNOS_MAXWIN];
+ struct reg_window32 sigc_wbuf[__SUNOS_MAXWIN];
};
typedef struct {
@@ -43,7 +40,7 @@ typedef struct {
unsigned long u_regs[16]; /* globals and ins */
} si_regs;
int si_mask;
-} __siginfo_t;
+} __siginfo32_t;
typedef struct {
unsigned long si_float_regs [32];
diff --git a/arch/sparc/include/asm/thread_info_32.h b/arch/sparc/include/asm/thread_info_32.h
index 80fe547..0f7b0e5 100644
--- a/arch/sparc/include/asm/thread_info_32.h
+++ b/arch/sparc/include/asm/thread_info_32.h
@@ -45,7 +45,7 @@ struct thread_info {
/* A place to store user windows and stack pointers
* when the stack needs inspection.
*/
- struct reg_window reg_window[NSWINS]; /* align for ldd! */
+ struct reg_window32 reg_window[NSWINS]; /* align for ldd! */
unsigned long rwbuf_stkptrs[NSWINS];
unsigned long w_saved;
OpenPOWER on IntegriCloud