Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 2b20a34fd5e4d7d9cabc6668e22f3e96ab3ad54e
      
https://github.com/tianocore/edk2/commit/2b20a34fd5e4d7d9cabc6668e22f3e96ab3ad54e
  Author: lixianglai <lixiang...@loongson.cn>
  Date:   2021-12-11 (Sat, 11 Dec 2021)

  Changed paths:
    M OvmfPkg/AmdSev/AmdSevX64.dsc
    M OvmfPkg/Bhyve/BhyveX64.dsc
    M OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
    M OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
    M OvmfPkg/Microvm/MicrovmX64.dsc
    M OvmfPkg/OvmfPkgIa32.dsc
    M OvmfPkg/OvmfPkgIa32X64.dsc
    M OvmfPkg/OvmfPkgX64.dsc
    M OvmfPkg/OvmfXen.dsc

  Log Message:
  -----------
  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 <lixiang...@loongson.cn>
Reviewed-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to