diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 17:22:49 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 17:22:49 +0900 |
commit | 0b8929354cdeddb17e81bfda903812c9adfd0b67 (patch) | |
tree | ff3a450e750752bfde6afe414ee0c1b0eea3ac8e /arch/sh/kernel/entry.S | |
parent | e96636ccfa373a00a0ee0558e1971baa7856d8b5 (diff) | |
download | op-kernel-dev-0b8929354cdeddb17e81bfda903812c9adfd0b67.zip op-kernel-dev-0b8929354cdeddb17e81bfda903812c9adfd0b67.tar.gz |
sh: __NR_restart_syscall support.
This implements support for __NR_restart_syscall.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/entry.S')
-rw-r--r-- | arch/sh/kernel/entry.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/entry.S b/arch/sh/kernel/entry.S index b087d34..fcbf50d 100644 --- a/arch/sh/kernel/entry.S +++ b/arch/sh/kernel/entry.S @@ -376,6 +376,7 @@ work_notifysig: bt/s restore_all mov r15, r4 mov #0, r5 + mov r12, r6 ! set arg2(save_r0) mov.l 2f, r1 mova restore_all, r0 jmp @r1 @@ -534,6 +535,7 @@ syscall_call: mov.l @r9, r8 jsr @r8 ! jump to specific syscall handler nop + mov.l @(OFF_R0,r15), r12 ! save r0 mov.l r0, @(OFF_R0,r15) ! save the return value ! syscall_exit: |