ArmPkg: Fix ARMGCC build
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Aug 2011 11:12:39 +0000 (11:12 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Aug 2011 11:12:39 +0000 (11:12 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12165 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/ArmDmaLib/ArmDmaLib.c
EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c

index f8d8a75..4764b42 100755 (executable)
@@ -96,7 +96,7 @@ DmaMap (
       ((*NumberOfBytes % gCacheAlignment) != 0)) {\r
 \r
     // Get the cacheability of the region\r
-    Status = gDS->GetMemorySpaceDescriptor (HostAddress, &GcdDescriptor);\r
+    Status = gDS->GetMemorySpaceDescriptor (*DeviceAddress, &GcdDescriptor);\r
     if (EFI_ERROR(Status)) {\r
       return Status;\r
     }\r
index e222a78..cc0d5bd 100644 (file)
@@ -196,7 +196,6 @@ MmcIdentificationMode (
   UINTN                   CmdArg;\r
   BOOLEAN                 IsHCS;\r
   EFI_MMC_HOST_PROTOCOL   *MmcHost;\r
-  UINTN                   CmdRetryCnt;\r
 \r
   MmcHost = MmcHostInstance->MmcHost;\r
   CmdArg = 0;\r