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/35982a2d9b63
branches:  trunk
changeset: 795379:35982a2d9b63
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 04deac5d38bf -r 35982a2d9b63 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