Re: [U-Boot] [PATCH 3/6] efi_loader: Track size of pool allocations to allow freeing

2016-09-30 Thread Alexander Graf
On 30.09.16 02:03, Stefan Brüns wrote: > allocate_pool has to return a buffer which is 8-byte aligned. Shift the > region returned by allocate_pages by 8 byte and store the size in the > headroom. The 8 byte overhead is neglegible, but provides the required > size when freeing the allocation late

[U-Boot] [PATCH 3/6] efi_loader: Track size of pool allocations to allow freeing

2016-09-29 Thread Stefan Brüns
allocate_pool has to return a buffer which is 8-byte aligned. Shift the region returned by allocate_pages by 8 byte and store the size in the headroom. The 8 byte overhead is neglegible, but provides the required size when freeing the allocation later. Signed-off-by: Stefan Brüns --- lib/efi_loa