X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fboot%2Fefi%2Flinux.c;fp=src%2Fboot%2Fefi%2Flinux.c;h=48801f9dd8695632a6ef93a25df4f3162c0b57ac;hb=927ebebe588970fa2dd082a0daaef246229f009b;hp=668510fca347d712e0252bf6344f2b590381f2c0;hpb=7444e10611671abac35be3ab9fe9697cd4c90d62;p=thirdparty%2Fsystemd.git diff --git a/src/boot/efi/linux.c b/src/boot/efi/linux.c index 668510fca34..48801f9dd86 100644 --- a/src/boot/efi/linux.c +++ b/src/boot/efi/linux.c @@ -93,15 +93,16 @@ static EFI_STATUS load_image(EFI_HANDLE parent, const void *source, size_t len, EFI_STATUS linux_exec( EFI_HANDLE parent, - const char *cmdline, UINTN cmdline_len, - const void *linux_buffer, UINTN linux_length, - const void *initrd_buffer, UINTN initrd_length) { + const char16_t *cmdline, + const void *linux_buffer, + size_t linux_length, + const void *initrd_buffer, + size_t initrd_length) { uint32_t compat_address; EFI_STATUS err; assert(parent); - assert(cmdline || cmdline_len == 0); assert(linux_buffer && linux_length > 0); assert(initrd_buffer || initrd_length == 0); @@ -113,7 +114,6 @@ EFI_STATUS linux_exec( return linux_exec_efi_handover( parent, cmdline, - cmdline_len, linux_buffer, linux_length, initrd_buffer, @@ -133,7 +133,7 @@ EFI_STATUS linux_exec( return log_error_status_stall(err, u"Error getting kernel loaded image protocol: %r", err); if (cmdline) { - loaded_image->LoadOptions = xstrn8_to_16(cmdline, cmdline_len); + loaded_image->LoadOptions = (void *) cmdline; loaded_image->LoadOptionsSize = strsize16(loaded_image->LoadOptions); }