Module Name:    src
Committed By:   nonaka
Date:           Mon Jan  5 08:40:56 UTC 2015

Modified Files:
        src/sys/arch/evbppc/mpc85xx: machdep.c

Log Message:
Initialize TLB for non cpu0.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/evbppc/mpc85xx/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbppc/mpc85xx/machdep.c
diff -u src/sys/arch/evbppc/mpc85xx/machdep.c:1.37 src/sys/arch/evbppc/mpc85xx/machdep.c:1.38
--- src/sys/arch/evbppc/mpc85xx/machdep.c:1.37	Sat Dec 27 16:19:33 2014
+++ src/sys/arch/evbppc/mpc85xx/machdep.c	Mon Jan  5 08:40:56 2015
@@ -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 @@ e500_cpu_hatch(struct cpu_info *ci)
 	 */
 	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();

Reply via email to