Commit 830626ca authored by Paul Mundt's avatar Paul Mundt

sh: Fix up switch_to() type casts.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9acb98fb
......@@ -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; \
\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment