xen/arm64: macros: Introduce an assembly macro to alias x30
authorJulien Grall <julien.grall@arm.com>
Mon, 22 Jul 2019 21:39:24 +0000 (22:39 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 29 Jul 2019 23:09:25 +0000 (16:09 -0700)
commit4941bfbf11eae05c92aa3242e353d173974ce7bf
tree857b3c3a0e68a9c7f160218249e9802e6efe173b
parente98edccb944a80db782e551f3090628e66c7fb52
xen/arm64: macros: Introduce an assembly macro to alias x30

The return address of a function is always stored in x30. For convenience,
introduce a register alias so "lr" can be used in assembly.

This is defined in asm-arm/arm64/macros.h to allow all assembly files
to use it.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/entry.S
xen/include/asm-arm/arm64/macros.h