Module Name:    src
Committed By:   kiyohara
Date:           Sat Aug 28 04:12:40 UTC 2010

Modified Files:
        src/sys/arch/evbarm/gumstix: gumstix_start.S

Log Message:
Disable L2 Cache when boot time.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/gumstix/gumstix_start.S

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/evbarm/gumstix/gumstix_start.S
diff -u src/sys/arch/evbarm/gumstix/gumstix_start.S:1.7 src/sys/arch/evbarm/gumstix/gumstix_start.S:1.8
--- src/sys/arch/evbarm/gumstix/gumstix_start.S:1.7	Sat Jul 10 08:17:48 2010
+++ src/sys/arch/evbarm/gumstix/gumstix_start.S	Sat Aug 28 04:12:40 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: gumstix_start.S,v 1.7 2010/07/10 08:17:48 kiyohara Exp $ */
+/*	$NetBSD: gumstix_start.S,v 1.8 2010/08/28 04:12:40 kiyohara Exp $ */
 /*
  * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -195,6 +195,11 @@
 	orr	r0, r0, #CPU_CONTROL_SYST_ENABLE
 #endif
 #if defined(CPU_CORTEXA8)
+	/* Disable L2 cache beforehand. */
+	mrc	p15, 0, r1, c1, c0, 1
+	bic	r1, r1, #0x2		/* clear L2EN */
+	mcr	p15, 0, r1, c1, c0, 1
+
 	orr	r0, r0, #CPU_CONTROL_AFLT_ENABLE | CPU_CONTROL_DC_ENABLE
 	orr	r0, r0, #CPU_CONTROL_BPRD_ENABLE | CPU_CONTROL_IC_ENABLE
 #endif

Reply via email to