diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-11-08 19:13:08 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-11-11 23:23:00 +0000 |
commit | 4c495e5e3d387b26e1f22d708ff707eee6898c17 (patch) | |
tree | 73edf523264dfca1575ecfbb9df6a49078898759 /OvmfPkg/Bhyve/PlatformPei | |
parent | a92559671a3bbdbc154429cf66edf4f490bbe218 (diff) | |
download | edk2-4c495e5e3d387b26e1f22d708ff707eee6898c17.zip edk2-4c495e5e3d387b26e1f22d708ff707eee6898c17.tar.gz edk2-4c495e5e3d387b26e1f22d708ff707eee6898c17.tar.bz2 |
OvmfPkg/Bhyve/PlatformPei: Fix VS2019 X64 NOOPT build issue
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>
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
Acked-by: Peter Grehan <grehan@freebsd.org>
Diffstat (limited to 'OvmfPkg/Bhyve/PlatformPei')
-rw-r--r-- | OvmfPkg/Bhyve/PlatformPei/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Bhyve/PlatformPei/Platform.c b/OvmfPkg/Bhyve/PlatformPei/Platform.c index d980e3f..c23b906 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;
}
|