]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvfmPkg/XenHypercallLib: add missing GCC_ASM_EXPORT to XenHypercall2
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 17 Dec 2015 17:10:59 +0000 (17:10 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 17 Dec 2015 17:10:59 +0000 (17:10 +0000)
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

OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S

index b38e1a8f18da79e8193df7a92485c27a89ce238c..c12c8658b72902212cf4b73860d39632fe920662 100644 (file)
@@ -16,7 +16,8 @@
 #include <IndustryStandard/Xen/arch-arm/xen.h>\r
 \r
   .text\r
 #include <IndustryStandard/Xen/arch-arm/xen.h>\r
 \r
   .text\r
-  .global   ASM_PFX(XenHypercall2)\r
+GCC_ASM_EXPORT(XenHypercall2)\r
+\r
 ASM_PFX(XenHypercall2):\r
   mov     r12, r0\r
   mov     r0, r1\r
 ASM_PFX(XenHypercall2):\r
   mov     r12, r0\r
   mov     r0, r1\r