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
This commit is contained in:
Ard Biesheuvel 2015-12-17 17:10:59 +00:00 committed by abiesheuvel
parent 5fa05671e2
commit ce44ee32d3
1 changed files with 2 additions and 1 deletions

View File

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