summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-29 14:52:18 +0200
committerWolfgang Denk <wd@denx.de>2008-04-29 14:52:18 +0200
commit0e715a7a3fe24b293c19bfff07f813b9ce51f0a9 (patch)
treeb5cc24d73040d64263e6cc71c8e557d9935d46d1
parente037a4c272018b86df4729c9f13ccbeec073b4a6 (diff)
parent138105efe1d2b1a40a3a97b4c1f85c2111bea2d8 (diff)
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
-rw-r--r--lib_ppc/cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib_ppc/cache.c b/lib_ppc/cache.c
index 27e1a823c6..5bfb220707 100644
--- a/lib_ppc/cache.c
+++ b/lib_ppc/cache.c
@@ -23,6 +23,7 @@
#include <common.h>
#include <asm/cache.h>
+#include <watchdog.h>
void flush_cache (ulong start_addr, ulong size)
{
@@ -35,6 +36,7 @@ void flush_cache (ulong start_addr, ulong size)
addr < end_addr;
addr += CFG_CACHELINE_SIZE) {
asm ("dcbst 0,%0": :"r" (addr));
+ WATCHDOG_RESET();
}
asm ("sync"); /* Wait for all dcbst to complete on bus */
@@ -42,6 +44,7 @@ void flush_cache (ulong start_addr, ulong size)
addr < end_addr;
addr += CFG_CACHELINE_SIZE) {
asm ("icbi 0,%0": :"r" (addr));
+ WATCHDOG_RESET();
}
}
asm ("sync"); /* Always flush prefetch queue in any case */