Revision: 16391
          http://sourceforge.net/p/edk2/code/16391
Author:   lersek
Date:     2014-11-14 17:35:29 +0000 (Fri, 14 Nov 2014)
Log Message:
-----------
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 <[email protected]>

Build-tested-by: Scott Duplichan <[email protected]>

Reviewed-by: Laszlo Ersek <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/XenBusDxe/GrantTable.c
    trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.c
    trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.h

Modified: trunk/edk2/OvmfPkg/XenBusDxe/GrantTable.c
===================================================================
--- trunk/edk2/OvmfPkg/XenBusDxe/GrantTable.c   2014-11-14 17:35:21 UTC (rev 
16390)
+++ trunk/edk2/OvmfPkg/XenBusDxe/GrantTable.c   2014-11-14 17:35:29 UTC (rev 
16391)
@@ -74,7 +74,7 @@
   VOID
   )
 {
-  UINTN Ref;
+  grant_ref_t Ref;
 
   EfiAcquireLock (&mGrantListLock);
   Ref = GrantList[0];
@@ -97,7 +97,7 @@
   )
 {
   grant_ref_t Ref;
-  UINT32 Flags;
+  UINT16 Flags;
 
   ASSERT (GrantTable != NULL);
   Ref = XenGrantTableGetFreeEntry ();

Modified: trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.c
===================================================================
--- trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.c 2014-11-14 17:35:21 UTC (rev 
16390)
+++ trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.c 2014-11-14 17:35:29 UTC (rev 
16391)
@@ -43,7 +43,7 @@
 UINT64
 XenHypercallHvmGetParam (
   IN XENBUS_DEVICE *Dev,
-  IN INTN          Index
+  IN UINT32        Index
   )
 {
   xen_hvm_param_t     Parameter;

Modified: trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.h
===================================================================
--- trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.h 2014-11-14 17:35:21 UTC (rev 
16390)
+++ trunk/edk2/OvmfPkg/XenBusDxe/XenHypercall.h 2014-11-14 17:35:29 UTC (rev 
16391)
@@ -60,7 +60,7 @@
 UINT64
 XenHypercallHvmGetParam (
   XENBUS_DEVICE *Dev,
-  INTN Index
+  UINT32 Index
   );
 
 /**


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to