arm64: Add macros to read/write system registers
authorMark Rutland <mark.rutland@arm.com>
Thu, 5 Nov 2015 15:09:17 +0000 (15:09 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 11:30:38 +0000 (11:30 +0000)
commit3600c2fdc09a43a30909743569e35a29121602ed
treefcbdddb0337b7f933f1704b767840ba2835fce08
parentb19e6892a90e7c9d15fde0a08516ec891a4e7d54
arm64: Add macros to read/write system registers

Rather than crafting custom macros for reading/writing each system
register provide generics accessors, read_sysreg and write_sysreg, for
this purpose.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/sysreg.h