OvmfPkg/Library/ResetSystemLib: Fix Microvm VS2019 NOOPT build issue

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3731

Fix VS2019 NOOPT build issues with OvmfPkg/Microvm/MicrovmX64.dsc
by fixing typecast of MICROVM_GED_MMIO_BASE_REGS to a VOID *.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Michael D Kinney 2021-11-11 11:20:50 -08:00 committed by mergify[bot]
parent 455b0347a7
commit e1e7306b54
1 changed files with 1 additions and 1 deletions

View File

@ -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);