]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: sysreg: replace open-coded mrs_s/msr_s with {read,write}_sysreg_s
authorWill Deacon <will.deacon@arm.com>
Tue, 6 Sep 2016 13:04:45 +0000 (14:04 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Sep 2016 17:12:08 +0000 (18:12 +0100)
commit776ed0b5e39b9cb6f54734b5f222ec8a4a370cdc
tree4c460a0145d2a9a1c2a70b93ceb294a2c7280ac7
parent1272a13c7e0d42654483697ea27685f25b645280
arm64: sysreg: replace open-coded mrs_s/msr_s with {read,write}_sysreg_s

Similar to our {read,write}_sysreg accessors for architected, named
system registers, this patch introduces {read,write}_sysreg_s variants
that can take arbitrary sys_reg output and therefore access IMPDEF
registers or registers that unsupported by binutils.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cputype.h
arch/arm64/include/asm/sysreg.h