OSDN Git Service

rx: syscall argument fix
authorYoshinori Sato <ysato@users.sourceforge.jp>
Fri, 1 Jan 2016 11:33:19 +0000 (20:33 +0900)
committerYoshinori Sato <yo-satoh@sios.com>
Fri, 28 Jan 2022 13:01:56 +0000 (22:01 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/rx/kernel/entry.S

index 8712aca..450629c 100644 (file)
@@ -138,8 +138,8 @@ syscall_entry:
        setpsw  i
        mov.l   #~(THREAD_SIZE - 1),r13
        and     r0,r13
-       mov.l   TI_FLAGS[r13],r14
-       tst     #_TIF_WORK_SYSCALL_MASK,r14
+       mov.l   TI_FLAGS[r13],r12
+       tst     #_TIF_WORK_SYSCALL_MASK,r12
        bnz     4f
 1:     
        cmp     #__NR_syscalls,r15
@@ -150,7 +150,7 @@ syscall_entry:
        shll    #2,r15
        add     #_sys_call_table,r15
        mov.l   [r15],r15
-       mov.l   r7,[-r0]
+       mov.l   r14,[-r0]
        mov.l   r5,[-r0]
        jsr     r15
        add     #8,r0