Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sa11x0 Update for recent changes to the ARM pma...



details:   https://anonhg.NetBSD.org/src/rev/333b47fabf5b
branches:  trunk
changeset: 526397:333b47fabf5b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 03 03:32:54 2002 +0000

description:
Update for recent changes to the ARM pmap.  From Hiroyuki Bessho,
PR 16617.

diffstat:

 sys/arch/arm/sa11x0/sa11x0_io.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 3d2d3e46bde7 -r 333b47fabf5b sys/arch/arm/sa11x0/sa11x0_io.c
--- a/sys/arch/arm/sa11x0/sa11x0_io.c   Fri May 03 03:30:48 2002 +0000
+++ b/sys/arch/arm/sa11x0/sa11x0_io.c   Fri May 03 03:32:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sa11x0_io.c,v 1.7 2002/03/24 18:12:55 thorpej Exp $    */
+/*     $NetBSD: sa11x0_io.c,v 1.8 2002/05/03 03:32:54 thorpej Exp $    */
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -167,10 +167,8 @@
        for(pa = startpa; pa < endpa; pa += PAGE_SIZE, va += PAGE_SIZE) {
                pmap_kenter_pa(va, pa, VM_PROT_READ | VM_PROT_WRITE);
                pte = vtopte(va);
-               if (cacheable)
-                       *pte |= PT_CACHEABLE;
-               else
-                       *pte &= ~PT_CACHEABLE;
+               if (cacheable == 0)
+                       *pte &= ~L2_S_CACHE_MASK;
        }
        pmap_update(pmap_kernel());
 



Home | Main Index | Thread Index | Old Index