summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Liu <daveliu@freescale.com>2006-11-02 18:05:50 -0600
committerKim Phillips <kim.phillips@freescale.com>2006-11-03 19:42:22 -0600
commit90f30a710a3c619b5405860a686c4ddfc495d4b6 (patch)
treeef3748781267f86bddbfc738294d44c583710d12 /include
parentbf0b542d6773a5a1cbce77691f009b06d9aeb57d (diff)
downloadblackbird-obmc-uboot-90f30a710a3c619b5405860a686c4ddfc495d4b6.tar.gz
blackbird-obmc-uboot-90f30a710a3c619b5405860a686c4ddfc495d4b6.zip
mpc83xx: Fix the incorrect dcbz operation
The 834x rev1.x silicon has one CPU5 errata. The issue is when the data cache locked with HID0[DLOCK], the dcbz instruction looks like no-op inst. The right behavior of the data cache is when the data cache Locked with HID0[DLOCK], the dcbz instruction allocates new tags in cache. The 834x rev3.0 and later and 8360 have not this bug inside. So, when 834x rev3.0/8360 are working with ECC, the dcbz instruction will corrupt the stack in cache, the processor will checkstop reset. However, the 834x rev1.x can work with ECC with these code, because the sillicon has this cache bug. The dcbz will not corrupt the stack in cache. Really, it is the fault code running on fault sillicon. This patch fix the incorrect dcbz operation. Instead of CPU FP writing to initialise the ECC. CHANGELOG: * Fix the incorrect dcbz operation instead of CPU FP writing to initialise the ECC memory. Otherwise, it will corrupt the stack in cache, The processor will checkstop reset. Signed-off-by: Dave Liu <daveliu@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 349d5cf726..0be8372cc5 100644
--- a/include/common.h
+++ b/include/common.h
@@ -402,6 +402,11 @@ void ppcSync(void);
void ppcDcbz(unsigned long value);
#endif
+#if defined (CONFIG_MPC83XX)
+void ppcDWload(unsigned int *addr, unsigned int *ret);
+void ppcDWstore(unsigned int *addr, unsigned int *value);
+#endif
+
/* $(CPU)/cpu.c */
int checkcpu (void);
int checkicache (void);
OpenPOWER on IntegriCloud