summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/pp/system-pp502x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/pp/system-pp502x.c')
-rw-r--r--firmware/target/arm/pp/system-pp502x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/pp/system-pp502x.c b/firmware/target/arm/pp/system-pp502x.c
index b1e791ec59..d6dfad1b24 100644
--- a/firmware/target/arm/pp/system-pp502x.c
+++ b/firmware/target/arm/pp/system-pp502x.c
@@ -253,15 +253,15 @@ static void ICODE_ATTR cache_invalidate_special(void)
if (CURRENT_CORE == CPU)
{
for (p = &CACHE_STATUS_BASE_CPU;
- p < (&CACHE_STATUS_BASE_CPU) + CACHE_SIZE;
- p += CACHEALIGN_BITS) /* sizeof(p) * CACHEALIGN_BITS */
+ p < (&CACHE_STATUS_BASE_CPU) + CACHE_SIZE/sizeof(*p);
+ p += CACHEALIGN_SIZE/sizeof(*p))
*p = CACHE_LINE_VALID | CACHE_ADDRESS_MASK;
}
else
{
for (p = &CACHE_STATUS_BASE_COP;
- p < (&CACHE_STATUS_BASE_COP) + CACHE_SIZE;
- p += CACHEALIGN_BITS)
+ p < (&CACHE_STATUS_BASE_COP) + CACHE_SIZE/sizeof(*p);
+ p += CACHEALIGN_SIZE/sizeof(*p))
*p = CACHE_LINE_VALID | CACHE_ADDRESS_MASK;
}
}