From cec6ad0a4082545fa9f8d2b8e7612daa96f6672d Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Fri, 14 Nov 2014 17:35:29 +0000 Subject: 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 Build-tested-by: Scott Duplichan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16391 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/XenBusDxe/GrantTable.c | 4 ++-- OvmfPkg/XenBusDxe/XenHypercall.c | 2 +- OvmfPkg/XenBusDxe/XenHypercall.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'OvmfPkg/XenBusDxe') 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 ); /** -- cgit v1.2.3