From 612627584eccb45f4acbdf08d560ed142c3a8e6c Mon Sep 17 00:00:00 2001 From: uch Date: Thu, 10 Dec 2009 13:35:32 +0000 Subject: [PATCH] u-area is no longer zero-cleared. reset here --- sys/arch/sh3/sh3/vm_machdep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/sh3/sh3/vm_machdep.c b/sys/arch/sh3/sh3/vm_machdep.c index 39eb309cf386..148916146701 100644 --- a/sys/arch/sh3/sh3/vm_machdep.c +++ b/sys/arch/sh3/sh3/vm_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: vm_machdep.c,v 1.65 2009/11/29 04:15:43 rmind Exp $ */ +/* $NetBSD: vm_machdep.c,v 1.66 2009/12/10 13:35:32 uch Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved. @@ -81,7 +81,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.65 2009/11/29 04:15:43 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.66 2009/12/10 13:35:32 uch Exp $"); #include "opt_kstack_debug.h" @@ -189,6 +189,8 @@ sh3_setup_uarea(struct lwp *l) #define P1ADDR(x) (SH3_PHYS_TO_P1SEG(*__pmap_kpte_lookup(x) & PG_PPN)) pcb = lwp_getpcb(l); + pcb->pcb_onfault = NULL; + pcb->pcb_faultbail = 0; #ifdef SH3 /* * Accessing context store space must not cause exceptions.