mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 05:55:02 -04:00
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
This commit is contained in:
commit
0e715a7a3f
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
|
#include <watchdog.h>
|
||||||
|
|
||||||
void flush_cache (ulong start_addr, ulong size)
|
void flush_cache (ulong start_addr, ulong size)
|
||||||
{
|
{
|
||||||
@ -35,6 +36,7 @@ void flush_cache (ulong start_addr, ulong size)
|
|||||||
addr < end_addr;
|
addr < end_addr;
|
||||||
addr += CFG_CACHELINE_SIZE) {
|
addr += CFG_CACHELINE_SIZE) {
|
||||||
asm ("dcbst 0,%0": :"r" (addr));
|
asm ("dcbst 0,%0": :"r" (addr));
|
||||||
|
WATCHDOG_RESET();
|
||||||
}
|
}
|
||||||
asm ("sync"); /* Wait for all dcbst to complete on bus */
|
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 < end_addr;
|
||||||
addr += CFG_CACHELINE_SIZE) {
|
addr += CFG_CACHELINE_SIZE) {
|
||||||
asm ("icbi 0,%0": :"r" (addr));
|
asm ("icbi 0,%0": :"r" (addr));
|
||||||
|
WATCHDOG_RESET();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
asm ("sync"); /* Always flush prefetch queue in any case */
|
asm ("sync"); /* Always flush prefetch queue in any case */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user