diff options
-rw-r--r-- | ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S | 7 | ||||
-rw-r--r-- | ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S b/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S index 46c17674c1..a8dbb911de 100644 --- a/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S +++ b/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S @@ -11,12 +11,9 @@ //
//
-.text
-.align 3
+#include <AsmMacroIoLibV8.h>
-GCC_ASM_EXPORT(ArmCallSmc)
-
-ASM_PFX(ArmCallSmc):
+ASM_FUNC(ArmCallSmc)
// Push x0 on the stack - The stack must always be quad-word aligned
str x0, [sp, #-16]!
diff --git a/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S b/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S index 260fb10fe8..afb2e9bc90 100644 --- a/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S +++ b/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S @@ -11,13 +11,11 @@ //
//
-.text
-.align 3
-.arch_extension sec
+#include <AsmMacroIoLibV8.h>
-GCC_ASM_EXPORT(ArmCallSmc)
+.arch_extension sec
-ASM_PFX(ArmCallSmc):
+ASM_FUNC(ArmCallSmc)
push {r4-r8}
// r0 will be popped just after the SMC call
push {r0}
|