From 1a194b3d7d135ee33f0c5d0235e27315e971a3b6 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 13 Mar 2007 19:38:24 +0000 Subject: Reset psl to spl0 in cpu_fork(), so that kthreads start at spl0 and not splhigh(); from NetBSD --- sys/arch/hp300/hp300/vm_machdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/hp300') diff --git a/sys/arch/hp300/hp300/vm_machdep.c b/sys/arch/hp300/hp300/vm_machdep.c index 5a788973cd8..e17f3e3be58 100644 --- a/sys/arch/hp300/hp300/vm_machdep.c +++ b/sys/arch/hp300/hp300/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.41 2006/06/24 13:20:17 miod Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.42 2007/03/13 19:38:19 miod Exp $ */ /* $NetBSD: vm_machdep.c,v 1.60 2001/07/06 05:53:35 chs Exp $ */ /* @@ -120,6 +120,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg) pcb->pcb_regs[6] = (int)func; /* A2 */ pcb->pcb_regs[7] = (int)arg; /* A3 */ pcb->pcb_regs[11] = (int)sf; /* SSP */ + pcb->pcb_ps = PSL_LOWIPL; /* start kthreads at IPL 0 */ } /* -- cgit v1.2.3