Skip to contentSkip to conversation

powerpc/85xx: Fix bug in dcache_disable

PATCH New Kumar Gala 1 participant 2 messages Jan 5, 2011 – Jan 6, 2011 PowerPC

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc/85xx: Fix bug in dcache_disable

We set the L1 dache register with a bogus register value. Need to be using 'r3' instead of 'r0'.

---
 arch/powerpc/cpu/mpc85xx/start.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/cpu/mpc85xx/start.S +2 -2
index 945c1b8..fa98af6 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004, 2007-2010 Freescale Semiconductor, Inc.
+ * Copyright 2004, 2007-2011 Freescale Semiconductor, Inc.
  * Copyright (C) 2003  Motorola,Inc.
  *
  * See file CREDITS for list of people who contributed to this
@@ -753,7 +753,7 @@ dcache_disable:
 	lis	r4,0
 	ori	r4,r4,L1CSR0_DCE
 	andc	r3,r3,r4
-	mtspr	L1CSR0,r0
+	mtspr	L1CSR0,r3
 	isync
 	blr
 
Signature · 1 line
1.7.2.3
author Applied
#1 lore raw

PATCH 1/1 powerpc/85xx: Fix bug in dcache_disable

Quoted 8 lines · Kumar Gala

We set the L1 dache register with a bogus register value. Need to be using 'r3' instead of 'r0'.

---
arch/powerpc/cpu/mpc85xx/start.S | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)

applied to 85xx

- k