Skip to content

Commit 855844f

Browse files
committed
Update CThunk to support new CMSIS Cortex A ops
1 parent c10dd0a commit 855844f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

platform/CThunk.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,15 @@ class CThunk
220220
uint32_t start_addr = (uint32_t)&m_thunk & 0xFFFFFFE0;
221221
uint32_t end_addr = (uint32_t)&m_thunk + sizeof(m_thunk);
222222
uint32_t addr;
223-
223+
224224
/* Data cache clean and invalid */
225225
for (addr = start_addr; addr < end_addr; addr += 0x20) {
226-
__v7_clean_inv_dcache_mva((void *)addr);
226+
L1C_CleanInvalidateDCacheMVA((void *)addr);
227227
}
228228
/* Instruction cache invalid */
229-
__v7_inv_icache_all();
230-
__ca9u_inv_tlb_all();
231-
__v7_inv_btac();
229+
L1C_InvalidateICacheAll();
230+
MMU_InvalidateTLB();
231+
L1C_InvalidateBTAC();
232232
}
233233
#endif
234234
#if defined(__CORTEX_M7)

0 commit comments

Comments
 (0)