Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/cats/cats Don't map ebsabootinfo.bt_vargp if it is ...



details:   https://anonhg.NetBSD.org/src/rev/6cc8738adebb
branches:  trunk
changeset: 328393:6cc8738adebb
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Apr 02 11:36:50 2014 +0000

description:
Don't map ebsabootinfo.bt_vargp if it is the same address as the vector page

diffstat:

 sys/arch/cats/cats/cats_machdep.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r d320737d27c4 -r 6cc8738adebb sys/arch/cats/cats/cats_machdep.c
--- a/sys/arch/cats/cats/cats_machdep.c Wed Apr 02 11:35:36 2014 +0000
+++ b/sys/arch/cats/cats/cats_machdep.c Wed Apr 02 11:36:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cats_machdep.c,v 1.77 2013/08/18 06:50:31 matt Exp $   */
+/*     $NetBSD: cats_machdep.c,v 1.78 2014/04/02 11:36:50 matt Exp $   */
 
 /*
  * Copyright (c) 1997,1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.77 2013/08/18 06:50:31 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.78 2014/04/02 11:36:50 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_modular.h"
@@ -622,8 +622,10 @@
 #endif
 
        /* Map the boot arguments page */
-       pmap_map_entry(l1pagetable, ebsabootinfo.bt_vargp,
-           ebsabootinfo.bt_pargp, VM_PROT_READ, PTE_CACHE);
+       if (ebsabootinfo.bt_vargp != vector_page) {
+               pmap_map_entry(l1pagetable, ebsabootinfo.bt_vargp,
+                   ebsabootinfo.bt_pargp, VM_PROT_READ, PTE_CACHE);
+       }
 
        /* Map the stack pages */
        pmap_map_chunk(l1pagetable, irqstack.pv_va, irqstack.pv_pa,



Home | Main Index | Thread Index | Old Index