Ignore:
Timestamp:
2018-08-13T00:11:39Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f34d2be
Parents:
05882233
Message:

Remove single-argument version of smc_coherence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch/barrier.h

    r05882233 r0abc2ae  
    117117 */
    118118
    119 #if defined PROCESSOR_ARCH_armv7_a | defined PROCESSOR_ARCH_armv6 | defined KERNEL
    120 //TODO might be PL1 only on armv5-
    121 #define smc_coherence(a) \
    122 do { \
    123         dcache_clean_mva_pou(ALIGN_DOWN((uintptr_t) a, CP15_C7_MVA_ALIGN)); \
    124         write_barrier();               /* Wait for completion */\
    125         icache_invalidate();\
    126         inst_barrier();                /* Wait for Inst refetch */\
    127 } while (0)
     119#ifdef KERNEL
     120
    128121/*
    129122 * @note: Cache type register is not available in uspace. We would need
    130123 * to export the cache line value, or use syscall for uspace smc_coherence
    131124 */
    132 #define smc_coherence_block(a, l) \
     125#define smc_coherence(a, l) \
    133126do { \
    134127        for (uintptr_t addr = (uintptr_t) a; addr < (uintptr_t) a + l; \
    135128            addr += CP15_C7_MVA_ALIGN) \
    136                 smc_coherence(addr); \
     129                dcache_clean_mva_pou(ALIGN_DOWN((uintptr_t) a, CP15_C7_MVA_ALIGN)); \
     130        write_barrier();               /* Wait for completion */\
     131        icache_invalidate();\
     132        write_barrier();\
     133        inst_barrier();                /* Wait for Inst refetch */\
    137134} while (0)
    138 #else
    139 #define smc_coherence(a)
    140 #define smc_coherence_block(a, l)
     135
    141136#endif
    142137
Note: See TracChangeset for help on using the changeset viewer.