Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc fix copy-paste oversight in MD part of ...



details:   https://anonhg.NetBSD.org/src/rev/c8fe4e0e9e5b
branches:  trunk
changeset: 552044:c8fe4e0e9e5b
user:      cl <cl%NetBSD.org@localhost>
date:      Tue Sep 16 19:02:51 2003 +0000

description:
fix copy-paste oversight in MD part of SA/pthread pagefault handling

diffstat:

 sys/arch/sparc/sparc/trap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d78175b033c7 -r c8fe4e0e9e5b sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c       Tue Sep 16 18:17:11 2003 +0000
+++ b/sys/arch/sparc/sparc/trap.c       Tue Sep 16 19:02:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.141 2003/09/16 13:59:59 cl Exp $ */
+/*     $NetBSD: trap.c,v 1.142 2003/09/16 19:02:51 cl Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.141 2003/09/16 13:59:59 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.142 2003/09/16 19:02:51 cl Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ktrace.h"
@@ -1229,7 +1229,7 @@
                l->l_md.md_tf = tf;
                if (l->l_flag & L_SA) {
                        KDASSERT(p != NULL && p->p_sa != NULL);
-                       p->p_sa->sa_vp_faultaddr = (vaddr_t)cr2;
+                       p->p_sa->sa_vp_faultaddr = (vaddr_t)sfva;
                        l->l_flag |= L_SA_PAGEFAULT;
                }
        }



Home | Main Index | Thread Index | Old Index