Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/sh3 u-area is no longer zero-cleared. reset here



details:   https://anonhg.NetBSD.org/src/rev/16fab0e30e55
branches:  trunk
changeset: 749828:16fab0e30e55
user:      uch <uch%NetBSD.org@localhost>
date:      Thu Dec 10 13:35:32 2009 +0000

description:
u-area is no longer zero-cleared. reset here

diffstat:

 sys/arch/sh3/sh3/vm_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d77bffe27319 -r 16fab0e30e55 sys/arch/sh3/sh3/vm_machdep.c
--- a/sys/arch/sh3/sh3/vm_machdep.c     Thu Dec 10 13:29:14 2009 +0000
+++ b/sys/arch/sh3/sh3/vm_machdep.c     Thu Dec 10 13:35:32 2009 +0000
@@ -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 <sys/cdefs.h>
-__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 @@
 #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.



Home | Main Index | Thread Index | Old Index