summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Csm
diff options
context:
space:
mode:
authorElvin Li <elvin.li@intel.com>2014-08-12 05:19:34 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-12 05:19:34 +0000
commit79966a6f35bcf374b80762e33bc47a1ad806ffc5 (patch)
treecb8d8249a871b4d1349d4fcef661b6bd1d8ba789 /IntelFrameworkModulePkg/Csm
parent4e684d3ca46cf93fbd767036ed75bd234edcb5df (diff)
downloadedk2-79966a6f35bcf374b80762e33bc47a1ad806ffc5.zip
edk2-79966a6f35bcf374b80762e33bc47a1ad806ffc5.tar.gz
edk2-79966a6f35bcf374b80762e33bc47a1ad806ffc5.tar.bz2
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
Diffstat (limited to 'IntelFrameworkModulePkg/Csm')
-rw-r--r--IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c
index 2f48186..dd2e2b9 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));