xen/arm64: head.S: Introduce macro to load the physical address of a symbol
authorJulien Grall <julien.grall@linaro.org>
Thu, 7 Dec 2017 17:18:46 +0000 (17:18 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 7 Dec 2017 22:53:30 +0000 (14:53 -0800)
commit43550972395f9a3a48bb4086a0faf0f8d442e37d
tree7c47020ff2e3790aae0465466fc7185460e7b100
parentd81a43fad35820fff73cada44fce2abbcb0a8930
xen/arm64: head.S: Introduce macro to load the physical address of a symbol

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

Lastly, use this new macro to replace all the current opencoded version.

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

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/head.S