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 pmap_link_l2pt(): If not ARM32_NEW_VM_LAY...



details:   https://anonhg.NetBSD.org/src/rev/a74be77e8825
branches:  trunk
changeset: 546202:a74be77e8825
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Apr 22 13:49:48 2003 +0000

description:
pmap_link_l2pt(): If not ARM32_NEW_VM_LAYOUT, add an assertion that
the VA that the page table maps is aligned to a 4MB boundary.

diffstat:

 sys/arch/arm/arm32/pmap_new.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0ea0ecda8b69 -r a74be77e8825 sys/arch/arm/arm32/pmap_new.c
--- a/sys/arch/arm/arm32/pmap_new.c     Tue Apr 22 13:18:52 2003 +0000
+++ b/sys/arch/arm/arm32/pmap_new.c     Tue Apr 22 13:49:48 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_new.c,v 1.4 2003/04/22 00:24:49 thorpej Exp $     */
+/*     $NetBSD: pmap_new.c,v 1.5 2003/04/22 13:49:48 thorpej Exp $     */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -210,7 +210,7 @@
 #include <machine/param.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_new.c,v 1.4 2003/04/22 00:24:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_new.c,v 1.5 2003/04/22 13:49:48 thorpej Exp $");
 
 #ifdef PMAP_DEBUG
 #define        PDEBUG(_lev_,_stat_) \
@@ -4312,6 +4312,7 @@
        u_int slot = va >> L1_S_SHIFT;
 
 #ifndef ARM32_NEW_VM_LAYOUT
+       KASSERT((va & ((L1_S_SIZE * 4) - 1)) == 0);
        KASSERT((l2pv->pv_pa & PGOFSET) == 0);
 #endif
 



Home | Main Index | Thread Index | Old Index