summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-04-18 23:26:05 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-04-18 23:26:05 +0000
commita7f4071ab77d0f48c20b16020eaaff564a376655 (patch)
tree7fa6a9db14e30ff586c4f892752735df9452f42e /arch/mips/kernel
parent8640f7f9cc309cea4e669d119ec6f64ec4d36f54 (diff)
Pause(2) fix for 2.3.
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/syscalls.h2
-rw-r--r--arch/mips/kernel/sysmips.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/kernel/syscalls.h b/arch/mips/kernel/syscalls.h
index d5edf1660..e1720d46e 100644
--- a/arch/mips/kernel/syscalls.h
+++ b/arch/mips/kernel/syscalls.h
@@ -44,7 +44,7 @@ SYS(sys_stime, 1) /* 4025 */
SYS(sys_ptrace, 4)
SYS(sys_alarm, 1)
SYS(sys_fstat, 2)
-SYS(sys_ni_syscall, 0)
+SYS(sys_pause, 0)
SYS(sys_utime, 2) /* 4030 */
SYS(sys_ni_syscall, 0)
SYS(sys_ni_syscall, 0)
diff --git a/arch/mips/kernel/sysmips.c b/arch/mips/kernel/sysmips.c
index a854c915f..1602013ec 100644
--- a/arch/mips/kernel/sysmips.c
+++ b/arch/mips/kernel/sysmips.c
@@ -124,3 +124,10 @@ sys_cachectl(char *addr, int nbytes, int op)
{
return -ENOSYS;
}
+
+asmlinkage int sys_pause(void)
+{
+ current->state = TASK_INTERRUPTIBLE;
+ schedule();
+ return -ERESTARTNOHAND;
+}