Acidanthera UEFI Development Kit based on EDK II edk2-stable202311
Go to file
jgong5 38c7df9848 Avoid DEBUG_CLEAR_MEMORY clearing MemoryMap internal structure.
In CoreFreePages(), the following sequence might break the MemoryMap internal structure:
CoreConvertPages() -> CoreFreeMemoryMapStack() -> AllocateMemoryMapEntry() -> CoreAllocatePoolPages() -> DEBUG_CLEAR_MEMORY()

CoreConvertPages() will call CoreFreeMemoryMapStack() after it adds the freed memory range, so the latter might use the just freed memory range when calling AllocateMemoryMapEntry(). But CoreFreePages() will call DEBUG_CLEAR_MEMORY() after CoreConvertPages(). This might clear up the memory map entry structure.

The fix calls DEBUG_CLEAR_MEMORY() just after freed memory range is added in CoreConvertPages(), which is safe.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10335 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-03 05:34:16 +00:00
ArmEbPkg Update to use DEBUG/RELEASE properly in DSC now tools have been fixed. Add VectorBase PCD to SEC. Don't assume it is at start of DRAM. 2010-03-05 03:17:47 +00:00
ArmPkg Remove hook for debugger. Should be implemented using the new library scheme. 2010-03-17 02:37:34 +00:00
BaseTools Not maintained. 2010-03-25 14:40:18 +00:00
BeagleBoardPkg Sync up ARMASM and GCC version 2010-03-17 02:25:41 +00:00
Conf Adding top-level Conf directory for next generation of EDK II build infrastructure tools. 2007-06-20 19:33:23 +00:00
DuetPkg Remove RELEASE tag from DuetPkg DSC, because DuetPkg post build script only support DEBUG tag. 2010-03-29 09:49:53 +00:00
EdkCompatibilityPkg Add function comments and refine function parameter IN OUT. 2010-04-02 02:53:41 +00:00
EdkShellBinPkg Not maintained. 2010-03-25 14:41:50 +00:00
EdkShellPkg 1. Correct File header to ## @file 2010-02-23 23:43:55 +00:00
EmbeddedPkg Add the beginning of a GDB based Debug Agent. IA-32 and X64 don't have low level interrupt code yet. I've been testing on ARM. 2010-04-03 00:41:42 +00:00
FatBinPkg 1. Update Fat Binaries to fix a migration bug about EFI lock semantics change. 2010-03-18 02:39:32 +00:00
IntelFrameworkModulePkg Not maintained. 2010-03-25 14:45:17 +00:00
IntelFrameworkPkg Not maintained. 2010-03-25 14:45:55 +00:00
MdeModulePkg Avoid DEBUG_CLEAR_MEMORY clearing MemoryMap internal structure. 2010-04-03 05:34:16 +00:00
MdePkg Fix INF file header format 2010-03-31 16:32:04 +00:00
Nt32Pkg Fix ICC build failures 2010-03-31 19:20:14 +00:00
Omap35xxPkg Added DebugAgentTimerLib. Cleaned up .h files and other code. 2010-04-03 00:34:19 +00:00
OptionRomPkg Clean up EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION. 2010-02-25 17:04:34 +00:00
OvmfPkg OVMF BlockMmioToBlockIoDxe: Fix build error for VS2005 2010-03-23 06:43:53 +00:00
PcAtChipsetPkg Correct PCD Pcd8259LegacyModeMask and Pcd8259LegacyModeEdgeLevel definition in PcAtChipsetPkg. 2010-04-02 05:22:40 +00:00
ShellPkg 1. Correct File header to ## @file 2010-02-23 23:58:38 +00:00
UefiCpuPkg Add Checking for MTRR existence. 2010-03-10 02:38:39 +00:00
UnixPkg Add VlanConfigDxe to platform DSC/FDF. 2010-03-03 10:47:27 +00:00
BuildNotes2.txt Update to clean up some obsolete info 2010-03-31 16:25:38 +00:00
edksetup.bat Set correct workspace when workspace is not set. 2010-01-26 04:58:56 +00:00
edksetup.sh add more description in edksetup.sh 2009-07-08 05:54:53 +00:00