diff --git a/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c b/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c index 5c714cf06a..94dc894ded 100644 --- a/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c +++ b/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c @@ -18,7 +18,7 @@ static UINTN MicrovmGedBase (VOID) { - VOID *Address = (VOID*) MICROVM_GED_MMIO_BASE_REGS; + VOID *Address = (VOID*)(UINTN) MICROVM_GED_MMIO_BASE_REGS; if (EfiGoneVirtual ()) { EfiConvertPointer (0, &Address);