diff options
author | Scott Duplichan <scott@notabs.org> | 2014-11-14 17:35:35 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2014-11-14 17:35:35 +0000 |
commit | 017a48664a4f8718d00102eb94ac6b21185e5c21 (patch) | |
tree | 2747d282abaf176125818a98eabadff68de0f139 /OvmfPkg/XenBusDxe/GrantTable.c | |
parent | cec6ad0a4082545fa9f8d2b8e7612daa96f6672d (diff) | |
download | edk2-017a48664a4f8718d00102eb94ac6b21185e5c21.tar.gz edk2-017a48664a4f8718d00102eb94ac6b21185e5c21.tar.bz2 edk2-017a48664a4f8718d00102eb94ac6b21185e5c21.zip |
OvmfPkg/XenBusDxe: fix VS2010 build failures
This patch contain only type cast.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Build-tested-by: Scott Duplichan <scott@notabs.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16392 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenBusDxe/GrantTable.c')
-rw-r--r-- | OvmfPkg/XenBusDxe/GrantTable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/XenBusDxe/GrantTable.c b/OvmfPkg/XenBusDxe/GrantTable.c index f68a8542b5..37d3bf786c 100644 --- a/OvmfPkg/XenBusDxe/GrantTable.c +++ b/OvmfPkg/XenBusDxe/GrantTable.c @@ -101,7 +101,7 @@ XenGrantTableGrantAccess ( ASSERT (GrantTable != NULL);
Ref = XenGrantTableGetFreeEntry ();
- GrantTable[Ref].frame = Frame;
+ GrantTable[Ref].frame = (UINT32)Frame;
GrantTable[Ref].domid = DomainId;
MemoryFence ();
Flags = GTF_permit_access;
@@ -152,7 +152,7 @@ XenGrantTableInit ( #endif
EfiInitializeLock (&mGrantListLock, TPL_NOTIFY);
for (Index = NR_RESERVED_ENTRIES; Index < NR_GRANT_ENTRIES; Index++) {
- XenGrantTablePutFreeEntry (Index);
+ XenGrantTablePutFreeEntry ((grant_ref_t)Index);
}
GrantTable = (VOID*)(UINTN) MmioAddr;
|