Date
1 - 3 of 3
[Patch 1/1] OvmfPkg/Bhyve/PlatformPei: Fix VS2019 X64 NOOPT build issue
Michael D Kinney
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3724
Add typecast to fix build error with VS2019 X64 NOOPT converting a UINT64 value to UINT32 value. Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Peter Grehan <grehan@freebsd.org> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> --- OvmfPkg/Bhyve/PlatformPei/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Bhyve/PlatformPei/Platform.c b/OvmfPkg/Bhyve/PlatformPei/Platform.c index d980e3fcb068..c23b90673328 100644 --- a/OvmfPkg/Bhyve/PlatformPei/Platform.c +++ b/OvmfPkg/Bhyve/PlatformPei/Platform.c @@ -191,7 +191,7 @@ MemMapInitialization ( ASSERT (PciExBarBase <= MAX_UINT32 - SIZE_256MB); PciBase = (UINT32)(PciExBarBase + SIZE_256MB); } else { - PciBase = PcdGet64 (PcdPciMmio32Base); + PciBase = (UINT32)PcdGet64 (PcdPciMmio32Base); if (PciBase == 0) PciBase = (TopOfLowRam < BASE_2GB) ? BASE_2GB : TopOfLowRam; } -- 2.32.0.windows.1
|
|
Peter Grehan
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3724 > > Add typecast to fix build error with VS2019 X64 NOOPT converting> aUINT64 value to UINT32 value.> > Cc: Rebecca Cran <rebecca@bsdio.com>> Cc: Peter Grehan <grehan@freebsd.org>> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Peter Grehan <grehan@freebsd.org>
|
|
Rebecca Cran
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
toggle quoted messageShow quoted text
On 11/8/21 9:53 PM, Michael D Kinney wrote:
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3724
|
|