MCPcopy Create free account
hub / github.com/coreboot/coreboot / read_ttbcr

Function read_ttbcr

payloads/libpayload/include/arm/arch/cache.h:117–122  ·  view source on GitHub ↗

read translation table base control register (TTBCR) */

Source from the content-addressed store, hash-verified

115
116/* read translation table base control register (TTBCR) */
117static inline uint32_t read_ttbcr(void)
118{
119 uint32_t val = 0;
120 asm volatile ("mrc p15, 0, %0, c2, c0, 2" : "=r" (val));
121 return val;
122}
123
124/* write translation table base control register (TTBCR) */
125static inline void write_ttbcr(uint32_t val)

Callers 1

lpae_map_initFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected