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 pmap_extract to deal with non-4KB pages.



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

description:
Fix pmap_extract to deal with non-4KB pages.

diffstat:

 sys/arch/arm/arm32/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6440afca91dc -r 9ab3cf2083d1 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Apr 10 02:44:05 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Apr 10 02:45:02 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.281 2014/04/05 22:05:12 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.282 2014/04/10 02:45:02 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.281 2014/04/05 22:05:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.282 2014/04/10 02:45:02 matt Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -3901,7 +3901,7 @@
                        break;
 
                default:
-                       pa = (pte & L2_S_FRAME) | (va & L2_S_OFFSET);
+                       pa = (pte & ~PAGE_MASK) | (va & ~PAGE_MASK);
                        break;
                }
        }



Home | Main Index | Thread Index | Old Index