linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: Enable I$/D$/BrPredict based on config
@ 2012-05-03 21:00 Bryan Buckley
  2012-05-03 22:23 ` Måns Rullgård
  2012-05-03 22:51 ` Russell King - ARM Linux
  0 siblings, 2 replies; 7+ messages in thread
From: Bryan Buckley @ 2012-05-03 21:00 UTC (permalink / raw)
  To: linux-arm-kernel

Currently we only disable these bits based on config. Now we will
use this config option to explicitly enable these features at this
point regardless of what bootloader, other SW, or HW did before.

Signed-off-by: Bryan Buckley <bryan.buckley@ti.com>
---
 arch/arm/kernel/head.S |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 3bf0c7f..cec0de5 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -411,12 +411,18 @@ __enable_mmu:
 #endif
 #ifdef CONFIG_CPU_DCACHE_DISABLE
 	bic	r0, r0, #CR_C
+#else
+	orr	r0, r0, #CR_C
 #endif
 #ifdef CONFIG_CPU_BPREDICT_DISABLE
 	bic	r0, r0, #CR_Z
+#else
+	orr	r0, r0, #CR_Z
 #endif
 #ifdef CONFIG_CPU_ICACHE_DISABLE
 	bic	r0, r0, #CR_I
+#else
+	orr	r0, r0, #CR_I
 #endif
 #ifdef CONFIG_ARM_LPAE
 	mov	r5, #0
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-03 22:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 21:00 [PATCH] ARM: Enable I$/D$/BrPredict based on config Bryan Buckley
2012-05-03 22:23 ` Måns Rullgård
2012-05-03 22:48   ` Buckley, Bryan
2012-05-03 22:52     ` Russell King - ARM Linux
2012-05-03 22:57     ` Måns Rullgård
2012-05-03 22:58       ` Buckley, Bryan
2012-05-03 22:51 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).