]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/XenAcpiPlatformDxe: don't cast UINT64 to pointer directly
authorLaszlo Ersek <lersek@redhat.com>
Fri, 17 Mar 2017 15:07:53 +0000 (16:07 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 28 Mar 2017 11:48:39 +0000 (13:48 +0200)
Because that breaks the (potential) 32-bit build of the driver.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c

index 203946f97bf812c514fee1805eb38b9b60b30f9b..49f9b5d2822aac9f115a6def055296343509bbb7 100644 (file)
@@ -73,7 +73,8 @@ GetXenArmAcpiRsdp (
   ASSERT (RegSize == 2 * sizeof (UINT64));\r
 \r
   RegBase = SwapBytes64(Reg[0]);\r
-  RsdpStructurePtr = (EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *)RegBase;\r
+  RsdpStructurePtr =\r
+    (EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *)(UINTN)RegBase;\r
 \r
   if (RsdpStructurePtr && RsdpStructurePtr->Revision >= 2) {\r
     Sum = CalculateSum8 ((CONST UINT8 *)RsdpStructurePtr,\r