summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-11-11 11:20:50 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-11-12 19:32:48 +0000
commite1e7306b54147e65cb7347b060e94f336d4a82d2 (patch)
treee8bd3cb3e82e33fbccb1d043a49ebb5cf2641f1b
parent455b0347a7c55d3842e87b20259659a22f7e62a5 (diff)
downloadedk2-e1e7306b54147e65cb7347b060e94f336d4a82d2.tar.gz
edk2-e1e7306b54147e65cb7347b060e94f336d4a82d2.tar.bz2
edk2-e1e7306b54147e65cb7347b060e94f336d4a82d2.zip
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>
-rw-r--r--OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c2
1 files changed, 1 insertions, 1 deletions
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);