Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/mips/mips Pull up revisions 1.75-1.76 (via pat...
details: https://anonhg.NetBSD.org/src/rev/c923c8fef5a0
branches: netbsd-1-5
changeset: 491740:c923c8fef5a0
user: he <he%NetBSD.org@localhost>
date: Tue May 15 20:33:14 2001 +0000
description:
Pull up revisions 1.75-1.76 (via patch, requested by simonb):
Make sure new processes (and kernel threads) gets created in spl0
level.
diffstat:
sys/arch/mips/mips/vm_machdep.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r dcb9ec273376 -r c923c8fef5a0 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Tue May 15 19:59:32 2001 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Tue May 15 20:33:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.65 2000/06/15 13:04:05 shin Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.65.2.1 2001/05/15 20:33:14 he 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.65 2000/06/15 13:04:05 shin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.65.2.1 2001/05/15 20:33:14 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -142,12 +142,17 @@
for (i = 0; i < UPAGES; i++)
p2->p_md.md_upte[i] = pte[i].pt_entry &~ x;
+ /*
+ * new thread of control starts its life calling proc_trampoline
+ * in spl0 condition.
+ */
pcb = &p2->p_addr->u_pcb;
pcb->pcb_segtab = (void *)p2->p_vmspace->vm_map.pmap->pm_segtab;
pcb->pcb_context[10] = (int)proc_trampoline; /* RA */
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