]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools ARM: impose strict alignment only for XIP modules
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 8 Aug 2016 10:33:06 +0000 (12:33 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 9 Aug 2016 07:50:05 +0000 (09:50 +0200)
commit0f73cca02b645267cb11ab8ddf1ba88af5ec3246
treea89462871549cc3294e19a1285fb732567fbac4f
parent3cdbd7528bd46584551de60f3c47e63963dda117
BaseTools ARM: impose strict alignment only for XIP modules

Given that we only support ARMv7 and up in Tianocore (due to the fact
that the PI spec mandates that the PEI services table pointer be stored
in the TPIDRURW register, which is not available on earlier CPUs), we can
assume that any code executing with the MMU on may perform unaligned
accesses (since the AArch32 bindings in the UEFI spec stipulate that
unaligned accesses should be allowed if supported by the CPU)

So relax the alignment restrictions to XIP modules only, i.e., BASE, SEC,
PEI_CORE and PEIM type modules, exactly like we do for AARCH64 already.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/build_rule.template
BaseTools/Conf/tools_def.template