summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/XenAcpiPlatformDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-03-17 16:07:53 +0100
committerLaszlo Ersek <lersek@redhat.com>2017-03-28 13:48:39 +0200
commit6244c8924e72d779522beccd4086ceef98c40017 (patch)
tree4d4f8e0ed4cd8d8213bc429fd879389b553007c5 /ArmVirtPkg/XenAcpiPlatformDxe
parenta00601c6de65d0d1b43bd91ba6c43238d9db2ed4 (diff)
downloadedk2-6244c8924e72d779522beccd4086ceef98c40017.tar.gz
edk2-6244c8924e72d779522beccd4086ceef98c40017.tar.bz2
edk2-6244c8924e72d779522beccd4086ceef98c40017.zip
ArmVirtPkg/XenAcpiPlatformDxe: don't cast UINT64 to pointer directly
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>
Diffstat (limited to 'ArmVirtPkg/XenAcpiPlatformDxe')
-rw-r--r--ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c b/ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c
index 203946f97b..49f9b5d282 100644
--- a/ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c
+++ b/ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c
@@ -73,7 +73,8 @@ GetXenArmAcpiRsdp (
ASSERT (RegSize == 2 * sizeof (UINT64));
RegBase = SwapBytes64(Reg[0]);
- RsdpStructurePtr = (EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *)RegBase;
+ RsdpStructurePtr =
+ (EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *)(UINTN)RegBase;
if (RsdpStructurePtr && RsdpStructurePtr->Revision >= 2) {
Sum = CalculateSum8 ((CONST UINT8 *)RsdpStructurePtr,