Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/mpc85xx Initialize TLB for non cpu0.



details:   https://anonhg.NetBSD.org/src/rev/1f2f67703da3
branches:  trunk
changeset: 335387:1f2f67703da3
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Mon Jan 05 08:40:56 2015 +0000

description:
Initialize TLB for non cpu0.

diffstat:

 sys/arch/evbppc/mpc85xx/machdep.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r ceca05dc7d42 -r 1f2f67703da3 sys/arch/evbppc/mpc85xx/machdep.c
--- a/sys/arch/evbppc/mpc85xx/machdep.c Mon Jan 05 07:40:05 2015 +0000
+++ b/sys/arch/evbppc/mpc85xx/machdep.c Mon Jan 05 08:40:56 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.37 2014/12/27 16:19:33 nonaka Exp $      */
+/*     $NetBSD: machdep.c,v 1.38 2015/01/05 08:40:56 nonaka Exp $      */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -997,6 +997,11 @@
         */
        cpu_write_4(OPENPIC_BASE + OPENPIC_CTPR, 15);   /* IPL_HIGH */
 
+       /* Initialize TLB */
+       e500_tlb1_sync();
+       mtspr(SPR_MAS4, MAS4_TSIZED_4KB | MAS4_MD);
+       tlb_invalidate_all();
+
        intr_cpu_hatch(ci);
 
        cpu_probe_cache();



Home | Main Index | Thread Index | Old Index