mirror of https://github.com/acidanthera/audk.git
Fixed a bug in LegacyBiosDxe to allocate correct ranges of memory.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li <elvin.li@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15789 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4e684d3ca4
commit
79966a6f35
|
@ -1005,10 +1005,10 @@ LegacyBiosInstall (
|
|||
AllocateAddress,
|
||||
MemStart,
|
||||
1,
|
||||
&MemoryAddress
|
||||
&StartAddress
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
MemoryPtr = (VOID *) ((UINTN) MemoryAddress);
|
||||
MemoryPtr = (VOID *) ((UINTN) StartAddress);
|
||||
ZeroMem (MemoryPtr, 0x1000);
|
||||
} else {
|
||||
DEBUG ((EFI_D_ERROR, "WARNING: Allocate legacy memory fail for SCSI card - %x\n", MemStart));
|
||||
|
|
Loading…
Reference in New Issue