summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2014-11-14 17:35:29 +0000
committerlersek <lersek@Edk2>2014-11-14 17:35:29 +0000
commitcec6ad0a4082545fa9f8d2b8e7612daa96f6672d (patch)
tree735403c6b01f42c17fa7506c46fd9cd575dabfbb /OvmfPkg
parentc47a842e411b79b717e00dd456ea79a893b3079e (diff)
downloadedk2-cec6ad0a4082545fa9f8d2b8e7612daa96f6672d.tar.gz
edk2-cec6ad0a4082545fa9f8d2b8e7612daa96f6672d.tar.bz2
edk2-cec6ad0a4082545fa9f8d2b8e7612daa96f6672d.zip
OvmfPkg/XenBusDxe: Fix some types.
This patch replace some types in GrantTable and the argument Index of XenHypercallHvmGetParam to what the types should be. This avoid to have type cast in code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Build-tested-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16391 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/XenBusDxe/GrantTable.c4
-rw-r--r--OvmfPkg/XenBusDxe/XenHypercall.c2
-rw-r--r--OvmfPkg/XenBusDxe/XenHypercall.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/OvmfPkg/XenBusDxe/GrantTable.c b/OvmfPkg/XenBusDxe/GrantTable.c
index b17fef3605..f68a8542b5 100644
--- a/OvmfPkg/XenBusDxe/GrantTable.c
+++ b/OvmfPkg/XenBusDxe/GrantTable.c
@@ -74,7 +74,7 @@ XenGrantTableGetFreeEntry (
VOID
)
{
- UINTN Ref;
+ grant_ref_t Ref;
EfiAcquireLock (&mGrantListLock);
Ref = GrantList[0];
@@ -97,7 +97,7 @@ XenGrantTableGrantAccess (
)
{
grant_ref_t Ref;
- UINT32 Flags;
+ UINT16 Flags;
ASSERT (GrantTable != NULL);
Ref = XenGrantTableGetFreeEntry ();
diff --git a/OvmfPkg/XenBusDxe/XenHypercall.c b/OvmfPkg/XenBusDxe/XenHypercall.c
index 0f2ba5d693..15e9e1c799 100644
--- a/OvmfPkg/XenBusDxe/XenHypercall.c
+++ b/OvmfPkg/XenBusDxe/XenHypercall.c
@@ -43,7 +43,7 @@ XenHyperpageInit (
UINT64
XenHypercallHvmGetParam (
IN XENBUS_DEVICE *Dev,
- IN INTN Index
+ IN UINT32 Index
)
{
xen_hvm_param_t Parameter;
diff --git a/OvmfPkg/XenBusDxe/XenHypercall.h b/OvmfPkg/XenBusDxe/XenHypercall.h
index 3627b1886c..9cac17da2b 100644
--- a/OvmfPkg/XenBusDxe/XenHypercall.h
+++ b/OvmfPkg/XenBusDxe/XenHypercall.h
@@ -60,7 +60,7 @@ XenHyperpageInit (
UINT64
XenHypercallHvmGetParam (
XENBUS_DEVICE *Dev,
- INTN Index
+ UINT32 Index
);
/**