mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
efi_loader: fix comment for struct efi_pool_allocation
Change comment for struct efi_pool_allocation to match Sphinx style. Describe all structure fields. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -37,17 +37,21 @@ void *efi_bounce_buffer;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* efi_pool_allocation - memory block allocated from pool
|
* struct efi_pool_allocation - memory block allocated from pool
|
||||||
*
|
*
|
||||||
* @num_pages: number of pages allocated
|
* @num_pages: number of pages allocated
|
||||||
* @checksum: checksum
|
* @checksum: checksum
|
||||||
|
* @data: allocated pool memory
|
||||||
*
|
*
|
||||||
* U-Boot services each EFI AllocatePool request as a separate
|
* U-Boot services each UEFI AllocatePool() request as a separate
|
||||||
* (multiple) page allocation. We have to track the number of pages
|
* (multiple) page allocation. We have to track the number of pages
|
||||||
* to be able to free the correct amount later.
|
* to be able to free the correct amount later.
|
||||||
|
*
|
||||||
|
* The checksum calculated in function checksum() is used in FreePool() to avoid
|
||||||
|
* freeing memory not allocated by AllocatePool() and duplicate freeing.
|
||||||
|
*
|
||||||
* EFI requires 8 byte alignment for pool allocations, so we can
|
* EFI requires 8 byte alignment for pool allocations, so we can
|
||||||
* prepend each allocation with an 64 bit header tracking the
|
* prepend each allocation with these header fields.
|
||||||
* allocation size, and hand out the remainder to the caller.
|
|
||||||
*/
|
*/
|
||||||
struct efi_pool_allocation {
|
struct efi_pool_allocation {
|
||||||
u64 num_pages;
|
u64 num_pages;
|
||||||
|
Reference in New Issue
Block a user