diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-01-02 19:32:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-02 19:32:59 -0800 |
commit | 4d7b92ad572b4bd4d92fc80911641bb6cba3b99c (patch) | |
tree | 6257d1b4bad63a296f03abee8940222a979d8d2a /arch/sparc/kernel/windows.c | |
parent | ece93487c31607558f4b91f378fcee4b43956dbc (diff) | |
download | op-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/kernel/windows.c')
-rw-r--r-- | arch/sparc/kernel/windows.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/windows.c b/arch/sparc/kernel/windows.c index 9cc93ea..f24d298 100644 --- a/arch/sparc/kernel/windows.c +++ b/arch/sparc/kernel/windows.c @@ -42,7 +42,7 @@ static inline void shift_window_buffer(int first_win, int last_win, struct threa for(i = first_win; i < last_win; i++) { tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; - memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window)); + memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window32)); } } @@ -70,7 +70,7 @@ void synchronize_user_stack(void) /* Ok, let it rip. */ if (copy_to_user((char __user *) sp, &tp->reg_window[window], - sizeof(struct reg_window))) + sizeof(struct reg_window32))) continue; shift_window_buffer(window, tp->w_saved - 1, tp); @@ -119,7 +119,7 @@ void try_to_clear_window_buffer(struct pt_regs *regs, int who) if ((sp & 7) || copy_to_user((char __user *) sp, &tp->reg_window[window], - sizeof(struct reg_window))) + sizeof(struct reg_window32))) do_exit(SIGILL); } tp->w_saved = 0; |