From 29d9e75f8df513406975e7945e0b91dd390fd47a Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Fri, 28 Oct 2016 12:41:11 +0100 Subject: 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 Reviewed-by: Leif Lindholm --- ArmPkg/Include/AsmMacroIoLibV8.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'ArmPkg/Include/AsmMacroIoLibV8.h') diff --git a/ArmPkg/Include/AsmMacroIoLibV8.h b/ArmPkg/Include/AsmMacroIoLibV8.h index e9285f78e7..db43d3b52e 100644 --- a/ArmPkg/Include/AsmMacroIoLibV8.h +++ b/ArmPkg/Include/AsmMacroIoLibV8.h @@ -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" ; \ -- cgit v1.2.3