diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:22:49 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:22:49 -0400 |
commit | 0b8929354cdeddb17e81bfda903812c9adfd0b67 (patch) | |
tree | ff3a450e750752bfde6afe414ee0c1b0eea3ac8e /arch/sh/kernel/entry.S | |
parent | e96636ccfa373a00a0ee0558e1971baa7856d8b5 (diff) |
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 b087d34dba35..fcbf50d4ee10 100644 --- a/arch/sh/kernel/entry.S +++ b/arch/sh/kernel/entry.S | |||
@@ -376,6 +376,7 @@ work_notifysig: | |||
376 | bt/s restore_all | 376 | bt/s restore_all |
377 | mov r15, r4 | 377 | mov r15, r4 |
378 | mov #0, r5 | 378 | mov #0, r5 |
379 | mov r12, r6 ! set arg2(save_r0) | ||
379 | mov.l 2f, r1 | 380 | mov.l 2f, r1 |
380 | mova restore_all, r0 | 381 | mova restore_all, r0 |
381 | jmp @r1 | 382 | jmp @r1 |
@@ -534,6 +535,7 @@ syscall_call: | |||
534 | mov.l @r9, r8 | 535 | mov.l @r9, r8 |
535 | jsr @r8 ! jump to specific syscall handler | 536 | jsr @r8 ! jump to specific syscall handler |
536 | nop | 537 | nop |
538 | mov.l @(OFF_R0,r15), r12 ! save r0 | ||
537 | mov.l r0, @(OFF_R0,r15) ! save the return value | 539 | mov.l r0, @(OFF_R0,r15) ! save the return value |
538 | ! | 540 | ! |
539 | syscall_exit: | 541 | syscall_exit: |