]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.c
StandaloneMmPkg: fix pointer/int casts against 32bit architectures
[mirror_edk2.git] / StandaloneMmPkg / Drivers / StandaloneMmCpu / AArch64 / StandaloneMmCpu.c
index 6884095c49f27f32db3f42888f685fdc0c0e6a89..d4590bcd197a6c5529fe023b6619bacfa24dd2e5 100644 (file)
@@ -164,8 +164,8 @@ StandaloneMmCpuInitialize (
 \r
   // Share the entry point of the CPU driver\r
   DEBUG ((DEBUG_INFO, "Sharing Cpu Driver EP *0x%lx = 0x%lx\n",\r
-          (UINT64) CpuDriverEntryPointDesc->ArmTfCpuDriverEpPtr,\r
-          (UINT64) PiMmStandaloneArmTfCpuDriverEntry));\r
+          (UINTN) CpuDriverEntryPointDesc->ArmTfCpuDriverEpPtr,\r
+          (UINTN) PiMmStandaloneArmTfCpuDriverEntry));\r
   *(CpuDriverEntryPointDesc->ArmTfCpuDriverEpPtr) = PiMmStandaloneArmTfCpuDriverEntry;\r
 \r
   // Find the descriptor that contains the whereabouts of the buffer for\r
@@ -180,8 +180,8 @@ StandaloneMmCpuInitialize (
     return Status;\r
   }\r
 \r
-  DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalStart - 0x%lx\n", (UINT64) NsCommBufMmramRange->PhysicalStart));\r
-  DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalSize - 0x%lx\n", (UINT64) NsCommBufMmramRange->PhysicalSize));\r
+  DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalStart - 0x%lx\n", (UINTN) NsCommBufMmramRange->PhysicalStart));\r
+  DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalSize - 0x%lx\n", (UINTN) NsCommBufMmramRange->PhysicalSize));\r
 \r
   CopyMem (&mNsCommBuffer, NsCommBufMmramRange, sizeof(EFI_MMRAM_DESCRIPTOR));\r
   DEBUG ((DEBUG_INFO, "mNsCommBuffer: 0x%016lx - 0x%lx\n", mNsCommBuffer.CpuStart, mNsCommBuffer.PhysicalSize));\r