Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot sun4v: Update TTE data in sparc...



details:   https://anonhg.NetBSD.org/src/rev/1dd35c211ad2
branches:  trunk
changeset: 328862:1dd35c211ad2
user:      palle <palle%NetBSD.org@localhost>
date:      Mon Apr 21 18:10:40 2014 +0000

description:
sun4v: Update TTE data in sparc64_finalize_tlb_sun4v() - sun4v has no L (locked) bit + ensure that the ITLB has the EP (executable) bit set

diffstat:

 sys/arch/sparc/stand/ofwboot/loadfile_machdep.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 22436d5562be -r 1dd35c211ad2 sys/arch/sparc/stand/ofwboot/loadfile_machdep.c
--- a/sys/arch/sparc/stand/ofwboot/loadfile_machdep.c   Mon Apr 21 18:05:17 2014 +0000
+++ b/sys/arch/sparc/stand/ofwboot/loadfile_machdep.c   Mon Apr 21 18:10:40 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: loadfile_machdep.c,v 1.12 2014/02/21 18:00:09 palle Exp $      */
+/*     $NetBSD: loadfile_machdep.c,v 1.13 2014/04/21 18:10:40 palle Exp $      */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -694,7 +694,7 @@
                        1,              /* valid */
                        0               /* endianness */
                        );
-               data |= SUN4V_TLB_L | SUN4V_TLB_CV; /* locked, virt.cache */
+               data |= SUN4V_TLB_CV|SUN4V_TLB_X; /* virt.cache, executable */
                if (!writable_text) {
                        hv_rc = hv_mmu_unmap_perm_addr(dtlb_store[i].te_va,
                                                       MAP_DTLB);



Home | Main Index | Thread Index | Old Index