mirror_edk2/MdeModulePkg/Core
Ard Biesheuvel 7e8e22056b MdeModulePkg: use index to traverse free pool pages
In preparation of making the pool code capable of serving allocations
from higher-up bins, update the free path to traverse a candidate page
by following the index of POOL_FREE header instead of duplicating the
carving logic that was used at page allocation time. This allows chunks
to be split into smaller ones, where one can be returned to serve the
allocation, and the other stored in a smaller bin for later use.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17013 6f19259b-4bc3-4df7-8a09-765794883524
2015-03-06 02:55:35 +00:00
..
Dxe MdeModulePkg: use index to traverse free pool pages 2015-03-06 02:55:35 +00:00
DxeIplPeim MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Pei MdeModulePke: PeiCore FirmwareVolmeInfoPpiNotifyCallback ()issue 2014-12-15 09:36:46 +00:00
PiSmmCore Use SmmMemLib to check communication buffer. 2015-02-02 14:42:22 +00:00
RuntimeDxe MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00