]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg: introduce ASM_FUNC, MOV32/MOV64 and ADRL/LDRL macros
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 10 Aug 2016 09:43:50 +0000 (11:43 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 11 Aug 2016 10:29:31 +0000 (12:29 +0200)
commitd2d0e27c7668017ef3d435a18e5d8008d36632d1
tree1256590875ac1b4e9c646ae6d4c1186774deca02
parent66edb631f8a284a9a0884eb6a41a603112dbff52
ArmPkg: introduce ASM_FUNC, MOV32/MOV64 and ADRL/LDRL macros

This introduces the ASM_FUNC() macro to annotate function entry points
in assembler files. This allows us to add additional metadata that
marks a function entry point as a function, and allows us to emit
a .section directive for each function, which makes it possible for
the linker to drop unreferenced code.

In addition, introduce a couple of utility macros that we can use to
clean up the code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Include/AsmMacroIoLib.h
ArmPkg/Include/AsmMacroIoLibV8.h