Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Make sure to have spl0 condition whenever...



details:   https://anonhg.NetBSD.org/src/rev/d7a4e89f146b
branches:  trunk
changeset: 509586:d7a4e89f146b
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Tue May 08 05:36:01 2001 +0000

description:
Make sure to have spl0 condition whenever a new thread of control
is created.  System kthreads are mistakenly left splhigh state.

pcb0 has an initial SR value for spl0 condition which are expected to
be propagated to all of children

diffstat:

 sys/arch/mips/mips/vm_machdep.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 4fb6deb9edf1 -r d7a4e89f146b sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Tue May 08 05:15:54 2001 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Tue May 08 05:36:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.74 2001/04/24 04:31:03 thorpej Exp $  */
+/*     $NetBSD: vm_machdep.c,v 1.75 2001/05/08 05:36:01 nisimura Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.74 2001/04/24 04:31:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.75 2001/05/08 05:36:01 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -145,6 +145,7 @@
        pcb->pcb_context[8] = (int)f - 24;              /* SP */
        pcb->pcb_context[0] = (int)func;                /* S0 */
        pcb->pcb_context[1] = (int)arg;                 /* S1 */
+       pcb->pcb_context[11] |= MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */
 }
 
 /*



Home | Main Index | Thread Index | Old Index