]> git.proxmox.com Git - mirror_edk2.git/commit
GenFv: Arm: support images entered in Thumb mode
authorEtienne Carriere <etienne.carriere@linaro.org>
Mon, 9 Aug 2021 15:19:44 +0000 (17:19 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 11 Aug 2021 11:32:32 +0000 (11:32 +0000)
commitca1773878d2626ee70823d52d594910c4b95dfe9
tree26bcaa6f1db19453f27cec3b510e80c6492afc3e
parentaee0098faf4dc30af811a20cd62ed52256568086
GenFv: Arm: support images entered in Thumb mode

Change GenFv for Arm architecture to generate a specific jump
instruction as image entry instruction, when the target entry label
is assembled with Thumb instruction set. This is possible since
SecCoreEntryAddress value fetched from the PE32 has its LSBit set when
the entry instruction executes in Thumb mode.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
BaseTools/Source/C/GenFv/GenFvInternalLib.c