diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-12-17 17:10:59 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-12-17 17:10:59 +0000 |
commit | ce44ee32d3c8e5ffac3c3c2608cabd485f30ddd9 (patch) | |
tree | 0096b78bca39cd4caba92ca8ffc22d7adbf83cf4 /OvmfPkg | |
parent | 5fa05671e2ac0dafc52eb3b8049b4ac95f54d3bf (diff) | |
download | edk2-ce44ee32d3c8e5ffac3c3c2608cabd485f30ddd9.zip edk2-ce44ee32d3c8e5ffac3c3c2608cabd485f30ddd9.tar.gz edk2-ce44ee32d3c8e5ffac3c3c2608cabd485f30ddd9.tar.bz2 |
OvfmPkg/XenHypercallLib: add missing GCC_ASM_EXPORT to XenHypercall2
GCC_ASM_EXPORT() not only exports a symbol as a function, it also emits
a .type <xxx>, %function directive, which is used by the ARM linker to
decide whether to emit interworking branches. So replace the explicit
.global with GCC_ASM_EXPORT(), or the code will not be callable from
Thumb-2 code.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19329 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S b/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S index b38e1a8..c12c865 100644 --- a/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S +++ b/OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S @@ -16,7 +16,8 @@ #include <IndustryStandard/Xen/arch-arm/xen.h>
.text
- .global ASM_PFX(XenHypercall2)
+GCC_ASM_EXPORT(XenHypercall2)
+
ASM_PFX(XenHypercall2):
mov r12, r0
mov r0, r1
|