Changeset 76de8a8e in rtems


Ignore:
Timestamp:
Apr 17, 2013, 12:54:05 PM (6 years ago)
Author:
Peng Fan <van.freenix@…>
Branches:
4.11, master
Children:
47fb2fe
Parents:
ef8e851
git-author:
Peng Fan <van.freenix@…> (04/17/13 12:54:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/17/13 14:38:48)
Message:

D-cache clean&&invalidate for Tiny6410

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/shared/include/arm-cp15.h

    ref8e851 r76de8a8e  
    610610}
    611611
     612/*      In DDI0301H_arm1176jzfs_r0p7_trm
     613 *      'MCR p15, 0, <Rd>, c7, c14, 0' means
     614 *      Clean and Invalidate Entire Data Cache
     615 */
     616static inline void arm_cp15_data_cache_clean_and_invalidate(void)
     617{
     618  ARM_SWITCH_REGISTERS;
     619
     620  uint32_t sbz = 0;
     621
     622  __asm__ volatile (
     623    ARM_SWITCH_TO_ARM
     624    "mcr p15, 0, %[sbz], c7, c14, 0\n"
     625    ARM_SWITCH_BACK
     626    : ARM_SWITCH_OUTPUT
     627    : [sbz] "r" (sbz)
     628    : "memory"
     629  );
     630
     631}
     632
    612633static inline void arm_cp15_data_cache_clean_and_invalidate_line(const void *mva)
    613634{
Note: See TracChangeset for help on using the changeset viewer.