xen/arm32: head: Add a macro to move an immediate constant into a 32-bit register
authorJulien Grall <julien.grall@arm.com>
Mon, 15 Apr 2019 20:58:51 +0000 (21:58 +0100)
committerJulien Grall <julien.grall@arm.com>
Sat, 7 Sep 2019 11:09:58 +0000 (12:09 +0100)
commit75843a162b84ff02201373d35cd2e72d7a8cca3e
treebae42c3d0e7c0b692b8dc5636d41dec43728b97a
parent6bdb43644097a42d2e80967996ea3e4c70b7cf15
xen/arm32: head: Add a macro to move an immediate constant into a 32-bit register

The current boot code is using the pattern ldr rX, =... to move an
immediate constant into a 32-bit register.

This pattern implies to load the immediate constant from a literal pool,
meaning a memory access will be performed.

The memory access can be avoided by using movw/movt instructions.

A new macro is introduced to move an immediate constant into a 32-bit
register without a memory load. Follow-up patches will make use of it.

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