D | lib_helpers.h | 17 #define read_sysreg32(op1, CRn, CRm, op2) \ argument 20 __asm__ volatile ("mrc p15, " #op1 ", %0, c" #CRn ", c" \ 25 #define write_sysreg32(val, op1, CRn, CRm, op2) \ argument 27 __asm__ volatile ("mcr p15, " #op1 ", %0, c" #CRn ", c" \ 31 #define read_sysreg64(op1, CRm) \ argument 34 __asm__ volatile ("mrrc p15, " #op1 ", %Q0, %R0, c" \ 39 #define write_sysreg64(val, op1, CRm) \ argument 41 __asm__ volatile ("mcrr p15, " #op1 ", %Q0, %R0, c" \ 45 #define MAKE_REG_HELPER(reg, op1, CRn, CRm, op2) \ argument 48 return read_sysreg32(op1, CRn, CRm, op2); \ [all …]
|