mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
e98edccb94
commit
4941bfbf11
2 files changed
+5
-5
No files matched your search
@@ -6,11 +6,6 @@
|
||||
#include <asm/smccc.h>
|
||||
#include <public/xen.h>
|
||||
|
||||
/*
|
||||
* Register aliases.
|
||||
*/
|
||||
lr .req x30 /* link register */
|
||||
|
||||
/*
|
||||
* Stack pushing/popping (register pairs only). Equivalent to store decrement
|
||||
* before, load increment after.
|
||||
|
||||
@@ -21,5 +21,10 @@
|
||||
ldr \dst, [\dst, \tmp]
|
||||
.endm
|
||||
|
||||
/*
|
||||
* Register aliases.
|
||||
*/
|
||||
lr .req x30 /* link register */
|
||||
|
||||
#endif /* __ASM_ARM_ARM64_MACROS_H */
|
||||
|
||||