summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-11-16 20:50:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-11-16 20:50:20 +0000
commit2a39fa558a41be222975f333acfd00c4db42fed5 (patch)
treeb1627458702e4c5686d179b0d093b0a835374437 /sys/arch/mips64
parent27351360a6e6c6cd92454a8c97e0bc587faf7e13 (diff)
Make userret() MI. On architectures which jammed stuff into it in the
past, pull that code out seperately. ok guenther miod
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/trap.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 391f1467447..d906010b49a 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.76 2011/07/11 15:40:47 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.77 2011/11/16 20:50:19 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -141,18 +141,6 @@ int ptrace_write_insn(struct proc *, vaddr_t, uint32_t);
int process_sstep(struct proc *, int);
#endif
-static __inline__ void
-userret(struct proc *p)
-{
- int sig;
-
- /* take pending signals */
- while ((sig = CURSIG(p)) != 0)
- postsig(sig);
-
- p->p_cpu->ci_schedstate.spc_curpriority = p->p_priority = p->p_usrpri;
-}
-
/*
* Handle an AST for the current process.
*/