Skip to content
Snippets Groups Projects
Commit 0e715a7a authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files
parents e037a4c2 138105ef
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment