Changeset d5610b9 in mainline for kernel/arch/arm32/src/cpu/cpu.c
- Timestamp:
- 2015-10-03T08:37:37Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- afe5e09
- Parents:
- 8ca6f08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/cpu/cpu.c
r8ca6f08 rd5610b9 322 322 void icache_invalidate(void) 323 323 { 324 #if defined(PROCESSOR_ARCH_armv7_a) 324 325 ICIALLU_write(0); 326 #else 327 ICIALL_write(0); 328 #endif 329 } 330 331 #if !defined(PROCESSOR_ARCH_armv7_a) 332 static bool cache_is_unified(void) 333 { 334 if (MIDR_read() != CTR_read()) { 335 /* We have the CTR register */ 336 return (CTR_read() & CTR_SEP_FLAG) != CTR_SEP_FLAG; 337 } else { 338 panic("Unknown cache type"); 339 } 340 } 341 #endif 342 343 void dcache_clean_mva_pou(uintptr_t mva) 344 { 345 #if defined(PROCESSOR_ARCH_armv7_a) 346 DCCMVAU_write(mva); 347 #else 348 if (cache_is_unified()) 349 CCMVA_write(mva); 350 else 351 DCCMVA_write(mva); 352 #endif 325 353 } 326 354
Note:
See TracChangeset
for help on using the changeset viewer.