diff options
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 9cc93eaa4abf..f24d298bda29 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 | |||
42 | 42 | ||
43 | for(i = first_win; i < last_win; i++) { | 43 | for(i = first_win; i < last_win; i++) { |
44 | tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; | 44 | tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; |
45 | memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window)); | 45 | memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window32)); |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
@@ -70,7 +70,7 @@ void synchronize_user_stack(void) | |||
70 | 70 | ||
71 | /* Ok, let it rip. */ | 71 | /* Ok, let it rip. */ |
72 | if (copy_to_user((char __user *) sp, &tp->reg_window[window], | 72 | if (copy_to_user((char __user *) sp, &tp->reg_window[window], |
73 | sizeof(struct reg_window))) | 73 | sizeof(struct reg_window32))) |
74 | continue; | 74 | continue; |
75 | 75 | ||
76 | shift_window_buffer(window, tp->w_saved - 1, tp); | 76 | 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) | |||
119 | 119 | ||
120 | if ((sp & 7) || | 120 | if ((sp & 7) || |
121 | copy_to_user((char __user *) sp, &tp->reg_window[window], | 121 | copy_to_user((char __user *) sp, &tp->reg_window[window], |
122 | sizeof(struct reg_window))) | 122 | sizeof(struct reg_window32))) |
123 | do_exit(SIGILL); | 123 | do_exit(SIGILL); |
124 | } | 124 | } |
125 | tp->w_saved = 0; | 125 | tp->w_saved = 0; |