sh: Fix up switch_to() type casts.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
9acb98fb7c
commit
830626caf8
|
@ -11,11 +11,11 @@ struct task_struct *__switch_to(struct task_struct *prev,
|
|||
*/
|
||||
#define switch_to(prev, next, last) \
|
||||
do { \
|
||||
register u32 *__ts1 __asm__ ("r1") = &prev->thread.sp; \
|
||||
register u32 *__ts2 __asm__ ("r2") = &prev->thread.pc; \
|
||||
register u32 *__ts1 __asm__ ("r1") = (u32 *)&prev->thread.sp; \
|
||||
register u32 *__ts2 __asm__ ("r2") = (u32 *)&prev->thread.pc; \
|
||||
register u32 *__ts4 __asm__ ("r4") = (u32 *)prev; \
|
||||
register u32 *__ts5 __asm__ ("r5") = (u32 *)next; \
|
||||
register u32 *__ts6 __asm__ ("r6") = &next->thread.sp; \
|
||||
register u32 *__ts6 __asm__ ("r6") = (u32 *)&next->thread.sp; \
|
||||
register u32 __ts7 __asm__ ("r7") = next->thread.pc; \
|
||||
struct task_struct *__last; \
|
||||
\
|
||||
|
|
Loading…
Reference in a new issue