diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-30 06:44:48 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-06-03 17:19:17 +0200 |
commit | 13f62d9f7edf4fe6a63506e83df03f43a9041cba (patch) | |
tree | 23502fd0ebc86ff00ad7716da2754eb5c0b99bf0 /lib | |
parent | 4afceb4d17ecb07ff92c8489fea066a288e1030e (diff) | |
download | u-boot-13f62d9f7edf4fe6a63506e83df03f43a9041cba.tar.gz u-boot-13f62d9f7edf4fe6a63506e83df03f43a9041cba.tar.xz u-boot-13f62d9f7edf4fe6a63506e83df03f43a9041cba.zip |
efi_loader: function description cmp_pe_section()
Rework the description of function cmp_pe_section().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_image_loader.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/efi_loader/efi_image_loader.c b/lib/efi_loader/efi_image_loader.c index ac7ea18f97..c2732876b8 100644 --- a/lib/efi_loader/efi_image_loader.c +++ b/lib/efi_loader/efi_image_loader.c @@ -212,14 +212,16 @@ static void efi_set_code_and_data_type( #ifdef CONFIG_EFI_SECURE_BOOT /** - * cmp_pe_section() - compare two sections - * @arg1: Pointer to pointer to first section - * @arg2: Pointer to pointer to second section + * cmp_pe_section() - compare virtual addresses of two PE image sections + * @arg1: pointer to pointer to first section header + * @arg2: pointer to pointer to second section header * - * Compare two sections in PE image. + * Compare the virtual addresses of two sections of an portable executable. + * The arguments are defined as const void * to allow usage with qsort(). * - * Return: -1, 0, 1 respectively if arg1 < arg2, arg1 == arg2 or - * arg1 > arg2 + * Return: -1 if the virtual address of arg1 is less than that of arg2, + * 0 if the virtual addresses are equal, 1 if the virtual address + * of arg1 is greater than that of arg2. */ static int cmp_pe_section(const void *arg1, const void *arg2) { |