mirror_edk2/MdeModulePkg/Core/Dxe
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
..
Dispatcher Add more code robustness check for modules under MdeModulePkg. 2010-02-26 08:53:27 +00:00
DxeMain 1. update the definitions in debug agent library, rename DEBUG_AGENT_INIT_DXE to DEBUG_AGENT_INIT_DXE_CORE and add DEBUG_AGENT_INIT_S3. 2010-03-13 16:52:46 +00:00
Event Update DXE Core to be compatible with PI 1.2 SMM Drivers. 2010-02-13 01:57:22 +00:00
FwVol Add more code robustness check for modules under MdeModulePkg. 2010-02-26 08:53:27 +00:00
FwVolBlock Update comments on setting >= 8 bytes Fv Alignment. 2009-10-26 09:14:47 +00:00
Gcd Add more code robustness check for modules under MdeModulePkg. 2010-02-26 08:53:27 +00:00
Hand Add more code robustness check for modules under MdeModulePkg. 2010-02-26 08:53:27 +00:00
Image The patch attached is to fix the issue that LMFA feature is failed on OVMF. The root cause is that OVMF platform reserved 128k top memory range for EMU variable range before PEI memory range re-locate to specified memory range, which is quite different from real platform. The original implementation has an assumption that AllocatePage will NOT be invoked until PEI memory range is re-located to preassigned memory range, , which is TRUE in most real platform, but FALSE on OVMF platform. So This patch is to enhanced the memory resource HOB re-organization algorithm to eliminate the assumption. 2010-03-10 02:47:05 +00:00
Library Remove the internal CoreCreateProtocolNotifyEvent() in DxeCore, for UefiLib provide the similar function EfiCreateProtocolNotifyEvent(). DxeCore can use that library function. 2008-09-12 01:12:31 +00:00
Mem Avoid DEBUG_CLEAR_MEMORY clearing MemoryMap internal structure. 2010-04-03 05:34:16 +00:00
Misc Apply code to avoid security warnings. 2009-01-15 03:00:00 +00:00
SectionExtraction Minor bug fix and robustness check improvement. 2010-03-03 09:40:16 +00:00
DxeMain.h 1. Refine debug agent library. 2010-02-27 17:04:12 +00:00
DxeMain.inf 1. Refine debug agent library. 2010-02-27 17:04:12 +00:00