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

Function read_ttbr0

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

read translation table base register 0 (TTBR0) */

Source from the content-addressed store, hash-verified

106
107/* read translation table base register 0 (TTBR0) */
108static inline uint64_t read_ttbr0(void)
109{
110 uint32_t low, high;
111 asm volatile ("mrrc p15, 0, %[low], %[high], c2" :
112 [low] "=r" (low), [high] "=r" (high));
113 return ((uint64_t)high << 32) | low;
114}
115
116/* read translation table base control register (TTBCR) */
117static inline uint32_t read_ttbcr(void)

Callers 1

lpae_map_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected