mirror of https://github.com/acidanthera/audk.git
OvmfPkg: QemuFlashFvbServicesRuntimeDxe: remove FvbScratchSpace field
The ESAL_FWB_GLOBAL.FvbScratchSpace array is never initialized (it contains garbage from AllocateRuntimePool()). Its element at subscript one (=FVB_VIRTUAL), containing garbage as well, is converted to virtual mapping. Then the array is never used again. Remove it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18669 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a05aff5655
commit
f97a5b5e4c
|
@ -169,8 +169,6 @@ FvbVirtualddressChangeEvent (
|
||||||
Index++;
|
Index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
EfiConvertPointer (0x0,
|
|
||||||
(VOID **) &mFvbModuleGlobal->FvbScratchSpace[FVB_VIRTUAL]);
|
|
||||||
EfiConvertPointer (0x0, (VOID **) &mFvbModuleGlobal);
|
EfiConvertPointer (0x0, (VOID **) &mFvbModuleGlobal);
|
||||||
QemuFlashConvertPointers ();
|
QemuFlashConvertPointers ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,6 @@ typedef struct {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT32 NumFv;
|
UINT32 NumFv;
|
||||||
EFI_FW_VOL_INSTANCE *FvInstance[2];
|
EFI_FW_VOL_INSTANCE *FvInstance[2];
|
||||||
UINT8 *FvbScratchSpace[2];
|
|
||||||
} ESAL_FWB_GLOBAL;
|
} ESAL_FWB_GLOBAL;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue