diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-01-02 22:32:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-02 22:32:59 -0500 |
commit | 4d7b92ad572b4bd4d92fc80911641bb6cba3b99c (patch) | |
tree | 6257d1b4bad63a296f03abee8940222a979d8d2a /arch/sparc/include | |
parent | ece93487c31607558f4b91f378fcee4b43956dbc (diff) |
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.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/ptrace_32.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/sigcontext_32.h | 9 | ||||
-rw-r--r-- | arch/sparc/include/asm/thread_info_32.h | 2 |
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 2ae67a2e7f3a..09521c6a5edb 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, | |||
99 | "st\t%%g0, [%0 + %3 + 0x3c]" | 99 | "st\t%%g0, [%0 + %3 + 0x3c]" |
100 | : /* no outputs */ | 100 | : /* no outputs */ |
101 | : "r" (regs), | 101 | : "r" (regs), |
102 | "r" (sp - sizeof(struct reg_window)), | 102 | "r" (sp - sizeof(struct reg_window32)), |
103 | "r" (zero), | 103 | "r" (zero), |
104 | "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0])) | 104 | "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0])) |
105 | : "memory"); | 105 | : "memory"); |
diff --git a/arch/sparc/include/asm/ptrace_32.h b/arch/sparc/include/asm/ptrace_32.h index 4cef450167dd..acb2d89d93e3 100644 --- a/arch/sparc/include/asm/ptrace_32.h +++ b/arch/sparc/include/asm/ptrace_32.h | |||
@@ -41,7 +41,7 @@ struct pt_regs { | |||
41 | #define UREG_RETPC UREG_I7 | 41 | #define UREG_RETPC UREG_I7 |
42 | 42 | ||
43 | /* A register window */ | 43 | /* A register window */ |
44 | struct reg_window { | 44 | struct reg_window32 { |
45 | unsigned long locals[8]; | 45 | unsigned long locals[8]; |
46 | unsigned long ins[8]; | 46 | unsigned long ins[8]; |
47 | }; | 47 | }; |
diff --git a/arch/sparc/include/asm/sigcontext_32.h b/arch/sparc/include/asm/sigcontext_32.h index c5fb60dcbd75..756e996410b1 100644 --- a/arch/sparc/include/asm/sigcontext_32.h +++ b/arch/sparc/include/asm/sigcontext_32.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #define __SUNOS_MAXWIN 31 | 9 | #define __SUNOS_MAXWIN 31 |
10 | 10 | ||
11 | /* This is what SunOS does, so shall I. */ | 11 | /* This is what SunOS does, so shall I. */ |
12 | struct sigcontext { | 12 | struct sigcontext32 { |
13 | int sigc_onstack; /* state to restore */ | 13 | int sigc_onstack; /* state to restore */ |
14 | int sigc_mask; /* sigmask to restore */ | 14 | int sigc_mask; /* sigmask to restore */ |
15 | int sigc_sp; /* stack pointer */ | 15 | int sigc_sp; /* stack pointer */ |
@@ -28,10 +28,7 @@ struct sigcontext { | |||
28 | char *sigc_spbuf[__SUNOS_MAXWIN]; | 28 | char *sigc_spbuf[__SUNOS_MAXWIN]; |
29 | 29 | ||
30 | /* Windows to restore after signal */ | 30 | /* Windows to restore after signal */ |
31 | struct { | 31 | struct reg_window32 sigc_wbuf[__SUNOS_MAXWIN]; |
32 | unsigned long locals[8]; | ||
33 | unsigned long ins[8]; | ||
34 | } sigc_wbuf[__SUNOS_MAXWIN]; | ||
35 | }; | 32 | }; |
36 | 33 | ||
37 | typedef struct { | 34 | typedef struct { |
@@ -43,7 +40,7 @@ typedef struct { | |||
43 | unsigned long u_regs[16]; /* globals and ins */ | 40 | unsigned long u_regs[16]; /* globals and ins */ |
44 | } si_regs; | 41 | } si_regs; |
45 | int si_mask; | 42 | int si_mask; |
46 | } __siginfo_t; | 43 | } __siginfo32_t; |
47 | 44 | ||
48 | typedef struct { | 45 | typedef struct { |
49 | unsigned long si_float_regs [32]; | 46 | 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 80fe547c3f45..0f7b0e5fb1c7 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 { | |||
45 | /* A place to store user windows and stack pointers | 45 | /* A place to store user windows and stack pointers |
46 | * when the stack needs inspection. | 46 | * when the stack needs inspection. |
47 | */ | 47 | */ |
48 | struct reg_window reg_window[NSWINS]; /* align for ldd! */ | 48 | struct reg_window32 reg_window[NSWINS]; /* align for ldd! */ |
49 | unsigned long rwbuf_stkptrs[NSWINS]; | 49 | unsigned long rwbuf_stkptrs[NSWINS]; |
50 | unsigned long w_saved; | 50 | unsigned long w_saved; |
51 | 51 | ||