Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcarm/hpcarm Make it compile without ARM32_PMAP_NE...



details:   https://anonhg.NetBSD.org/src/rev/1b9b37f5fad8
branches:  trunk
changeset: 546606:1b9b37f5fad8
user:      toshii <toshii%NetBSD.org@localhost>
date:      Fri May 02 14:42:48 2003 +0000

description:
Make it compile without ARM32_PMAP_NEW defined.
Fixes PR kern/21397 by Jachym Holecek.

diffstat:

 sys/arch/hpcarm/hpcarm/hpc_machdep.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 17a787adc022 -r 1b9b37f5fad8 sys/arch/hpcarm/hpcarm/hpc_machdep.c
--- a/sys/arch/hpcarm/hpcarm/hpc_machdep.c      Fri May 02 14:36:38 2003 +0000
+++ b/sys/arch/hpcarm/hpcarm/hpc_machdep.c      Fri May 02 14:42:48 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpc_machdep.c,v 1.61 2003/05/02 14:36:38 toshii Exp $  */
+/*     $NetBSD: hpc_machdep.c,v 1.62 2003/05/02 14:42:48 toshii Exp $  */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -586,7 +586,11 @@
 #endif
        /* Map page tables */
        pmap_map_chunk(l1pagetable, KERNEL_BASE, KERNEL_BASE, pt_size,
+#ifdef ARM32_PMAP_NEW
            VM_PROT_READ | VM_PROT_WRITE, PTE_PAGETABLE);
+#else
+           VM_PROT_READ | VM_PROT_WRITE, PTE_CACHE);
+#endif
 
        /* Map the page table that maps the kernel pages */
        pmap_map_entry(l1pagetable, kernel_ptpt.pv_va, kernel_ptpt.pv_pa,



Home | Main Index | Thread Index | Old Index