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/kernel/unaligned_32.c | |
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/kernel/unaligned_32.c')
-rw-r--r-- | arch/sparc/kernel/unaligned_32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sparc/kernel/unaligned_32.c b/arch/sparc/kernel/unaligned_32.c index c2a28c5ad65..6b1e6cde6ff 100644 --- a/arch/sparc/kernel/unaligned_32.c +++ b/arch/sparc/kernel/unaligned_32.c | |||
@@ -97,26 +97,26 @@ static inline int sign_extend_imm13(int imm) | |||
97 | 97 | ||
98 | static inline unsigned long fetch_reg(unsigned int reg, struct pt_regs *regs) | 98 | static inline unsigned long fetch_reg(unsigned int reg, struct pt_regs *regs) |
99 | { | 99 | { |
100 | struct reg_window *win; | 100 | struct reg_window32 *win; |
101 | 101 | ||
102 | if(reg < 16) | 102 | if(reg < 16) |
103 | return (!reg ? 0 : regs->u_regs[reg]); | 103 | return (!reg ? 0 : regs->u_regs[reg]); |
104 | 104 | ||
105 | /* Ho hum, the slightly complicated case. */ | 105 | /* Ho hum, the slightly complicated case. */ |
106 | win = (struct reg_window *) regs->u_regs[UREG_FP]; | 106 | win = (struct reg_window32 *) regs->u_regs[UREG_FP]; |
107 | return win->locals[reg - 16]; /* yes, I know what this does... */ | 107 | return win->locals[reg - 16]; /* yes, I know what this does... */ |
108 | } | 108 | } |
109 | 109 | ||
110 | static inline unsigned long safe_fetch_reg(unsigned int reg, struct pt_regs *regs) | 110 | static inline unsigned long safe_fetch_reg(unsigned int reg, struct pt_regs *regs) |
111 | { | 111 | { |
112 | struct reg_window __user *win; | 112 | struct reg_window32 __user *win; |
113 | unsigned long ret; | 113 | unsigned long ret; |
114 | 114 | ||
115 | if (reg < 16) | 115 | if (reg < 16) |
116 | return (!reg ? 0 : regs->u_regs[reg]); | 116 | return (!reg ? 0 : regs->u_regs[reg]); |
117 | 117 | ||
118 | /* Ho hum, the slightly complicated case. */ | 118 | /* Ho hum, the slightly complicated case. */ |
119 | win = (struct reg_window __user *) regs->u_regs[UREG_FP]; | 119 | win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; |
120 | 120 | ||
121 | if ((unsigned long)win & 3) | 121 | if ((unsigned long)win & 3) |
122 | return -1; | 122 | return -1; |
@@ -129,11 +129,11 @@ static inline unsigned long safe_fetch_reg(unsigned int reg, struct pt_regs *reg | |||
129 | 129 | ||
130 | static inline unsigned long *fetch_reg_addr(unsigned int reg, struct pt_regs *regs) | 130 | static inline unsigned long *fetch_reg_addr(unsigned int reg, struct pt_regs *regs) |
131 | { | 131 | { |
132 | struct reg_window *win; | 132 | struct reg_window32 *win; |
133 | 133 | ||
134 | if(reg < 16) | 134 | if(reg < 16) |
135 | return ®s->u_regs[reg]; | 135 | return ®s->u_regs[reg]; |
136 | win = (struct reg_window *) regs->u_regs[UREG_FP]; | 136 | win = (struct reg_window32 *) regs->u_regs[UREG_FP]; |
137 | return &win->locals[reg - 16]; | 137 | return &win->locals[reg - 16]; |
138 | } | 138 | } |
139 | 139 | ||