up_coherent_dcache should do nothing the the length is zero
This commit is contained in:
parent
b13d9b4161
commit
519e9c85e9
@ -82,13 +82,16 @@
|
|||||||
|
|
||||||
void up_coherent_dcache(uintptr_t addr, size_t len)
|
void up_coherent_dcache(uintptr_t addr, size_t len)
|
||||||
{
|
{
|
||||||
/* Perform the operation on the L1 cache */
|
if (len > 0)
|
||||||
|
{
|
||||||
|
/* Perform the operation on the L1 cache */
|
||||||
|
|
||||||
cp15_coherent_dcache(addr, addr+len);
|
cp15_coherent_dcache(addr, addr + len - 1);
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_L2CACHE
|
#ifdef CONFIG_ARCH_L2CACHE
|
||||||
/* If we have an L2 cache, then there more things that need to done */
|
/* If we have an L2 cache, then there more things that need to done */
|
||||||
|
|
||||||
# warning This is insufficient
|
# warning This is insufficient
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user