mirror of
https://github.com/revyos/th1520-vendor-uboot.git
synced 2026-06-21 09:02:25 +02:00
Revert "fix(c9xx): don't flush dcache when invalidating"
This reverts commit adec30ace4.
This commit is contained in:
committed by
Han Gao/Revy/Rabenda
parent
74eca2553e
commit
4529d8d50f
@@ -104,6 +104,16 @@ void invalidate_dcache_range(unsigned long start, unsigned long end)
|
||||
{
|
||||
register unsigned long i asm("a0") = start & ~(CONFIG_SYS_CACHELINE_SIZE - 1);
|
||||
|
||||
for (; i < end; i += CONFIG_SYS_CACHELINE_SIZE)
|
||||
asm volatile(".long 0x02b5000b"); /* dcache.cipa a0 */
|
||||
|
||||
sync_is();
|
||||
}
|
||||
|
||||
void invalid_dcache_range(unsigned long start, unsigned long end)
|
||||
{
|
||||
register unsigned long i asm("a0") = start & ~(CONFIG_SYS_CACHELINE_SIZE - 1);
|
||||
|
||||
for (; i < end; i += CONFIG_SYS_CACHELINE_SIZE)
|
||||
asm volatile(".long 0x02a5000b"); /* dcache.ipa a0 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user