Skip to content

Commit

Permalink
ArmVirtPkg/XenAcpiPlatformDxe: don't cast UINT64 to pointer directly
Browse files Browse the repository at this point in the history
Because that breaks the (potential) 32-bit build of the driver.

Cc: Ard Biesheuvel <[email protected]>
Cc: Leif Lindholm <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
  • Loading branch information
lersek committed Mar 28, 2017
1 parent a00601c commit 6244c89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6244c89

Please sign in to comment.