]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/tools_def AARCH64: mark register x18 as reserved
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 13 Jul 2017 12:41:12 +0000 (13:41 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 14 Jul 2017 16:28:49 +0000 (17:28 +0100)
commit6d73863b5464f382af2a17b2c2ec1abc550d0af5
tree7d6b8d490645a0d2c874648df8d4399e849b0963
parentb926f2f2a4cd404df1d2c1dddbcd1178acc63b5e
BaseTools/tools_def AARCH64: mark register x18 as reserved

The AArch64 ABI classifies register x18 as a platform register, which
means it should not be used unless the code is guaranteed to run on a
platform that doesn't use it in such a capacity.

GCC does not honour this requirement by default, and so we need to tell
it not to touch it explicitly, by passing the -ffixed-x18 command line
option.

Link: https://bugzilla.tianocore.org/show_bug.cgi?id=625
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
BaseTools/Conf/tools_def.template