coreboot: add memory pool infrastructure

Hardware / Coreboot - Aaron Durbin [chromium.org] - 14 May 2015 10:27 UTC

The memory pool infrastructure provides an allocator with
very simple free()ing semantics: only the most recent allocation can be freed from the pool. However, it can be reset and when not used any longer providing the entire region for future allocations.

Change-Id: I5ae9ab35bb769d78bbc2866c5ae3b5ce2cdce5fa

127525c coreboot: add memory pool infrastructure
src/include/mem_pool.h | 73 ++++++++++++++++++++++++++++++++++++++++++++++++
src/lib/Makefile.inc | 5 ++++
src/lib/mem_pool.c | 51 +++++++++++++++++++++++++++++++++
3 files changed, 129 insertions(+)

Upstream: review.coreboot.org


  • Share