Improve EFI stub command line conversion
Subsystems (3)
PATCH v2 1/1 Improve EFI stub command line conversion
Improve the conversion of the UTF-16 EFI command line to UTF-8 for passing to the kernel.
Depends on series:
[PATCH V4 0/6] ADD ARM EFI stub
Changes from V1:
* Fix loop limit when processing UTF-16 EFI command line
* Break out from series: [PATCH V5 00/18] ARM EFI stub common code
* Now includes caller fixup in ARM EFI stub.
H. Peter Anvin (1):
Improve EFI stub command line conversion
arch/arm/boot/compressed/efi-stub.c | 2 +- arch/x86/boot/compressed/eboot.c | 3 +- drivers/firmware/efi/efi-stub-helper.c | 93 ++++++++++++++++++++++++-------- 3 files changed, 72 insertions(+), 26 deletions(-)
Signature · 1 line
1.7.10.4
PATCH 1/1 Improve EFI stub command line conversion
From: "H. Peter Anvin" <[email protected]>
Improve the conversion of the UTF-16 EFI command line to UTF-8 for passing to the kernel.
Signed-off-by Roy Franz <[email protected]>
--- arch/arm/boot/compressed/efi-stub.c | 2 +- arch/x86/boot/compressed/eboot.c | 3 +- drivers/firmware/efi/efi-stub-helper.c | 93 ++++++++++++++++++++++++-------- 3 files changed, 72 insertions(+), 26 deletions(-)
arch/arm/boot/compressed/efi-stub.c +1 -1
@@ -109,7 +109,7 @@ int efi_entry(void *handle, efi_system_table_t *sys_table,* so this memory just needs to not conflict with boot protocol * requirements. */ - cmdline_ptr =efi_convert_cmdline_to_ascii (sys_table, image, + cmdline_ptr =efi_convert_cmdline (sys_table, image, &cmdline_size);if (!cmdline_ptr) {efi_printk (sys_table,PRINTK_PREFIX "ERROR: Unable to allocate memory for command line.\n" );
arch/x86/boot/compressed/eboot.c +1 -2
@@ -488,8 +488,7 @@ struct boot_params *make_boot_params(void *handle, efi_system_table_t *_table) hdr->type_of_loader =0x21 ;/* Convert unicode cmdline to ascii */ - cmdline_ptr =efi_convert_cmdline_to_ascii (sys_table, image, - &options_size); + cmdline_ptr =efi_convert_cmdline (sys_table, image, &options_size);if (!cmdline_ptr) goto fail; hdr->cmd_line_ptr = (unsigned long )cmdline_ptr;
drivers/firmware/efi/efi-stub-helper.c +70 -23
133 lines not on this page · raw message
Signature · 1 line
1.7.10.4