summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-04-13 03:07:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-04-13 03:07:30 +0000
commit6f14233f45c422bb01fcbeee812f3b1929ad9166 (patch)
tree0cf21946aaa0099daf6d7ed51a6a570b4ba07943
parent999e2fb3620d6bbe8b2e9e45e86693eca668f792 (diff)
In cpu_fork, initialize the ipl of the new process to
run at IPL_0. From NetBSD.
-rw-r--r--sys/arch/alpha/alpha/vm_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c
index 296a13fb88f..2d514948568 100644
--- a/sys/arch/alpha/alpha/vm_machdep.c
+++ b/sys/arch/alpha/alpha/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.19 2001/03/21 10:15:05 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.20 2001/04/13 03:07:29 art Exp $ */
/* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */
/*
@@ -238,6 +238,7 @@ cpu_fork(p1, p2, stack, stacksize)
(u_int64_t)p2; /* s2: arg */
up->u_pcb.pcb_context[7] =
(u_int64_t)switch_trampoline; /* ra: assembly magic */
+ up->u_pcb.pcb_context[8] = ALPHA_PSL_IPL_0; /* ps: IPL */
}
}