In order to ease the process of reading and writing any register at current EL, provide read_current and write_current assembly macros. These are included in arch/lib_helpers.h under the __ASSEMBLY__ macro condition. This is done to allow the same header file to be included by .c and .S files.
BUG=chrome-os-partner:30785 BRANCH=None TEST=Compiles successfully
Change-Id: I51749b6e4ae7b1ffbaae28d915cd100a28959f26
2157ba7 arm64: Add support for read and write registers at current EL in assembly
src/arch/arm64/include/armv8/arch/lib_helpers.h | 97 +++++++++++++++++++++++
1 file changed, 97 insertions(+)
Upstream: review.coreboot.org