summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2016-12-06 12:03:24 +0000
committerLaszlo Ersek <lersek@redhat.com>2016-12-06 18:00:32 +0100
commit6ad157c3faac58fb923b3345dd2479ea4599e234 (patch)
tree494ab936a8099490619672e2e593354092107322
parent919278054f43c410268941d5970e533a7596bcab (diff)
downloadedk2-6ad157c3faac58fb923b3345dd2479ea4599e234.tar.gz
edk2-6ad157c3faac58fb923b3345dd2479ea4599e234.tar.bz2
edk2-6ad157c3faac58fb923b3345dd2479ea4599e234.zip
OvmfPkg/XenHypercallLib: Add EFIAPI
Because EFIAPI is necessary for functions declared in library class header files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Build-tested-by: Laszlo Ersek <lersek@redhat.com>
-rw-r--r--OvmfPkg/Include/Library/XenHypercallLib.h3
-rw-r--r--OvmfPkg/Library/XenHypercallLib/XenHypercall.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/Include/Library/XenHypercallLib.h b/OvmfPkg/Include/Library/XenHypercallLib.h
index 509855d302..36e3344e2f 100644
--- a/OvmfPkg/Include/Library/XenHypercallLib.h
+++ b/OvmfPkg/Include/Library/XenHypercallLib.h
@@ -58,6 +58,7 @@ XenHypercall2 (
@return The value of the asked parameter or 0 in case of error.
**/
UINT64
+EFIAPI
XenHypercallHvmGetParam (
UINT32 Index
);
@@ -72,6 +73,7 @@ XenHypercallHvmGetParam (
otherwise, an error code.
**/
INTN
+EFIAPI
XenHypercallMemoryOp (
IN UINTN Operation,
IN OUT VOID *Arguments
@@ -87,6 +89,7 @@ XenHypercallMemoryOp (
otherwise, an error code.
**/
INTN
+EFIAPI
XenHypercallEventChannelOp (
IN INTN Operation,
IN OUT VOID *Arguments
diff --git a/OvmfPkg/Library/XenHypercallLib/XenHypercall.c b/OvmfPkg/Library/XenHypercallLib/XenHypercall.c
index 82cdbd9bdb..5ea5c45818 100644
--- a/OvmfPkg/Library/XenHypercallLib/XenHypercall.c
+++ b/OvmfPkg/Library/XenHypercallLib/XenHypercall.c
@@ -22,6 +22,7 @@
#include <Library/XenHypercallLib.h>
UINT64
+EFIAPI
XenHypercallHvmGetParam (
IN UINT32 Index
)
@@ -43,6 +44,7 @@ XenHypercallHvmGetParam (
}
INTN
+EFIAPI
XenHypercallMemoryOp (
IN UINTN Operation,
IN OUT VOID *Arguments
@@ -53,6 +55,7 @@ XenHypercallMemoryOp (
}
INTN
+EFIAPI
XenHypercallEventChannelOp (
IN INTN Operation,
IN OUT VOID *Arguments