diff options
author | Elvin Li <elvin.li@intel.com> | 2014-08-12 05:19:34 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-12 05:19:34 +0000 |
commit | 79966a6f35bcf374b80762e33bc47a1ad806ffc5 (patch) | |
tree | cb8d8249a871b4d1349d4fcef661b6bd1d8ba789 | |
parent | 4e684d3ca46cf93fbd767036ed75bd234edcb5df (diff) | |
download | edk2-platforms-79966a6f35bcf374b80762e33bc47a1ad806ffc5.tar.xz |
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
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c index 2f48186d43..dd2e2b9167 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c @@ -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));
|