mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
xtensa/esp32s3: fix dcache flush error in up_flush_dcache
The items is not used in up_flush_dcache, and we should use it in function cache_invalidate_dcache_items. Signed-off-by: rongyichang <rongyichang@xiaommi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
ea180792a3
commit
3a0ab84855
@@ -353,7 +353,7 @@ void up_invalidate_dcache(uintptr_t start, uintptr_t end)
|
||||
{
|
||||
uint32_t items = (end - start) / up_get_dcache_linesize();
|
||||
|
||||
cache_invalidate_dcache_items((uint32_t)start, end);
|
||||
cache_invalidate_dcache_items((uint32_t)start, items);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -466,7 +466,7 @@ void up_flush_dcache(uintptr_t start, uintptr_t end)
|
||||
|
||||
cache_writeback_addr((uint32_t)start, (uint32_t)(end - start));
|
||||
|
||||
cache_invalidate_dcache_items((uint32_t)start, end);
|
||||
cache_invalidate_dcache_items((uint32_t)start, items);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user