diff options
author | Wolfgang Denk <wd@denx.de> | 2008-04-29 14:52:18 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-29 14:52:18 +0200 |
commit | 0e715a7a3fe24b293c19bfff07f813b9ce51f0a9 (patch) | |
tree | b5cc24d73040d64263e6cc71c8e557d9935d46d1 | |
parent | e037a4c272018b86df4729c9f13ccbeec073b4a6 (diff) | |
parent | 138105efe1d2b1a40a3a97b4c1f85c2111bea2d8 (diff) | |
download | u-boot-imx-0e715a7a3fe24b293c19bfff07f813b9ce51f0a9.zip u-boot-imx-0e715a7a3fe24b293c19bfff07f813b9ce51f0a9.tar.gz u-boot-imx-0e715a7a3fe24b293c19bfff07f813b9ce51f0a9.tar.bz2 |
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
-rw-r--r-- | lib_ppc/cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib_ppc/cache.c b/lib_ppc/cache.c index 27e1a82..5bfb220 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 */ |