From 79966a6f35bcf374b80762e33bc47a1ad806ffc5 Mon Sep 17 00:00:00 2001 From: Elvin Li Date: Tue, 12 Aug 2014 05:19:34 +0000 Subject: [PATCH] Fixed a bug in LegacyBiosDxe to allocate correct ranges of memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15789 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c | 4 ++-- 1 file 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)); -- 2.39.2