xen/arm32: head.S: Introduce a macro to load the physical address of a symbol
authorJulien Grall <jgrall@amazon.com>
Sat, 16 Jul 2022 14:33:47 +0000 (15:33 +0100)
committerJulien Grall <julien@xen.org>
Sun, 17 Jul 2022 13:10:08 +0000 (14:10 +0100)
commitd07358f2dccd7efb3f113314c9dda17db194a996
tree2a34451b63a75d4523b715d56ed994f8c6f47a6f
parentab2977b027acbbd33a7eecda854d1911a7702f8b
xen/arm32: head.S: Introduce a macro to load the physical address of a symbol

A lot of places in the ARM32 assembly requires to load the physical address
of a symbol. Rather than open-coding the translation, introduce a new macro
that will load the phyiscal address of a symbol.

Lastly, use the new macro to replace all the current open-coded version.

Note that most of the comments associated to the code changed have been
removed because the code is now self-explanatory.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/arm32/head.S