read translation table base control register (TTBCR) */
| 115 | |
| 116 | /* read translation table base control register (TTBCR) */ |
| 117 | static 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) */ |
| 125 | static inline void write_ttbcr(uint32_t val) |