ArmPkg: remove LoadConstantXxx() asm macros

This is ancient cruft that is no longer used, so remove it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Ard Biesheuvel
2016-10-28 12:41:11 +01:00
parent b0609e4f02
commit 29d9e75f8d
3 changed files with 0 additions and 73 deletions

View File

@@ -42,36 +42,6 @@
cbnz SAFE_XREG, 1f ;\
b . ;// We should never get here
#if defined(__clang__)
// load x0 with _Data
#define LoadConstant(_Data) \
ldr x0, 1f ; \
b 2f ; \
.align(8) ; \
1: \
.8byte (_Data) ; \
2:
// load _Reg with _Data
#define LoadConstantToReg(_Data, _Reg) \
ldr _Reg, 1f ; \
b 2f ; \
.align(8) ; \
1: \
.8byte (_Data) ; \
2:
#elif defined (__GNUC__)
#define LoadConstant(Data) \
ldr x0, =Data
#define LoadConstantToReg(Data, Reg) \
ldr Reg, =Data
#endif // __GNUC__
#define _ASM_FUNC(Name, Section) \
.global Name ; \
.section #Section, "ax" ; \