]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Bhyve/BhyveX64.dsc
OvmfPkg-EmuVariableFvbRuntimeDxe: Support Access To Memory Above 4G
authorlixianglai <lixianglai@loongson.cn>
Thu, 9 Dec 2021 11:28:01 +0000 (19:28 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 11 Dec 2021 16:13:07 +0000 (16:13 +0000)
commit2b20a34fd5e4d7d9cabc6668e22f3e96ab3ad54e
tree25381b49d1cd6415a000e238a692761ffec838a7
parentf6df289a1c43f60143bba530a823d3fd2eba6223
OvmfPkg-EmuVariableFvbRuntimeDxe: Support Access To Memory Above 4G

In FvbInitialize Function,
PcdFlashNvStorageVariableBase64 PcdFlashNvStorageFtwWorkingBase
PcdFlashNvStorageFtwSpareBase will not exceed 0x100000000,
Due to truncation and variable type limitations.
That leads to the NV variable cannot be saved to the memory above 4G.

Modify as follows:
1.Remove the forced type conversion of UINT32.
2.Use UINT64 type variables.

Signed-off-by: xianglai li <lixianglai@loongson.cn>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg/Bhyve/BhyveX64.dsc
OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
OvmfPkg/Microvm/MicrovmX64.dsc
OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgX64.dsc
OvmfPkg/OvmfXen.dsc