summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-13 19:38:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-13 19:38:24 +0000
commit1a194b3d7d135ee33f0c5d0235e27315e971a3b6 (patch)
tree7efdc3687057c75be8e8c6829dd5c8fe7ea7e2aa /sys/arch/hp300
parent538b576f31fc68d1d945e58315c14494433ba543 (diff)
Reset psl to spl0 in cpu_fork(), so that kthreads start at spl0 and not
splhigh(); from NetBSD
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r--sys/arch/hp300/hp300/vm_machdep.c3
1 files changed, 2 insertions, 1 deletions
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 */
}
/*