mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
a00601c6de
commit
6244c8924e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue