MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / FCache_cacheLineSize

Function FCache_cacheLineSize

bsp/ft2004/libraries/bsp/standlone/ft_cache.c:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "ft_cache.h"
16
17__STATIC_INLINE u32 FCache_cacheLineSize(void)
18{
19 u32 ctr;
20 asm volatile("mrc p15, 0, %0, c0, c0, 1"
21 : "=r"(ctr));
22 return 4 << ((ctr >> 16) & 0xF);
23}
24
25void FCache_cpuDcacheInvalidate(void *addr, ft_base_t size)
26{

Callers 3

FCache_cpuDcacheCleanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected