Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Fix pasto.



details:   https://anonhg.NetBSD.org/src/rev/9889180822b1
branches:  trunk
changeset: 795380:9889180822b1
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 10 02:45:55 2014 +0000

description:
Fix pasto.

diffstat:

 sys/arch/arm/arm32/pmap.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 35982a2d9b63 -r 9889180822b1 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Apr 10 02:45:02 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Apr 10 02:45:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.282 2014/04/10 02:45:02 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.283 2014/04/10 02:45:55 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
 #include <arm/locore.h>
 //#include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.282 2014/04/10 02:45:02 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.283 2014/04/10 02:45:55 matt Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -3888,8 +3888,7 @@
                        return false;
                }
 
-               ptep = &ptep[l2pte_index(va)];
-               pte = *ptep;
+               pte = ptep[l2pte_index(va)];
                pmap_release_pmap_lock(pm);
 
                if (pte == 0)
@@ -3901,7 +3900,7 @@
                        break;
 
                default:
-                       pa = (pte & ~PAGE_MASK) | (va & ~PAGE_MASK);
+                       pa = (pte & ~PAGE_MASK) | (va & PAGE_MASK);
                        break;
                }
        }



Home | Main Index | Thread Index | Old Index