summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-11-03 03:35:43 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-11-03 03:35:43 +0000
commit2f6ea8a91f3d24d023e296ffd11fe2825e69cf83 (patch)
treeb8dfd68a9a29d3556f568be214f9bc386b5a1516 /sys/arch/sh
parentf8224b55c1cff47a19a7f8740233cae629316130 (diff)
mdproc has to be initialised
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/vm_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sh/sh/vm_machdep.c b/sys/arch/sh/sh/vm_machdep.c
index 20bb7adc942..77ddd8171b5 100644
--- a/sys/arch/sh/sh/vm_machdep.c
+++ b/sys/arch/sh/sh/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.2 2006/11/03 03:35:42 mickey Exp $ */
/* $NetBSD: vm_machdep.c,v 1.53 2006/08/31 16:49:21 matt Exp $ */
/*-
@@ -133,6 +133,8 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize,
KDASSERT(p1 == curproc || p1 == &proc0);
+ bzero(&p2->p_md, sizeof(p2->p_md));
+
/* Copy flags */
p2->p_md.md_flags = p1->p_md.md_flags;