Now that we won't lose signotify()'s while we're asleep, go ahead

and to signal processing in ast() again.
This commit is contained in:
thorpej 2001-01-14 21:22:56 +00:00
parent 53d2115d66
commit da57125f23
2 changed files with 3 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: userret.h,v 1.3 2001/01/14 00:39:49 thorpej Exp $ */
/* $NetBSD: userret.h,v 1.4 2001/01/14 21:22:56 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -48,13 +48,6 @@
static __inline void
userret(struct proc *p)
{
#if 1 /* XXX Need to make astpending per-process */
int sig;
/* Take pending signals. */
while ((sig = CURSIG(p)) != 0)
postsig(sig);
#endif
curcpu()->ci_schedstate.spc_curpriority = p->p_priority = p->p_usrpri;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.158 2001/01/14 21:18:40 thorpej Exp $ */
/* $NetBSD: trap.c,v 1.159 2001/01/14 21:22:57 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -44,7 +44,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.158 2001/01/14 21:18:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.159 2001/01/14 21:22:57 thorpej Exp $");
#include "opt_cputype.h" /* which mips CPU levels do we support? */
#include "opt_ktrace.h"
@ -685,9 +685,7 @@ ast(pc)
unsigned pc; /* program counter where to continue */
{
struct proc *p = curproc;
#if 0
int sig;
#endif
while (p->p_md.md_astpending) {
uvmexp.softs++;
@ -698,23 +696,15 @@ ast(pc)
ADDUPROF(p);
}
#if 0 /* XXX Need to make astpending per-process */
/* Take pending signals. */
while ((sig = CURSIG(p)) != 0)
postsig(sig);
#endif
if (want_resched) {
/*
* We are being preempted.
*/
preempt(NULL);
#if 0 /* XXX Need to make astpending per-process */
/* Running again; take any new pending signals. */
while ((sig = CURSIG(p)) != 0)
postsig(sig);
#endif
}
userret(p);