diff options
author | Roy Franz <roy.franz@linaro.org> | 2013-09-22 18:45:39 -0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-09-25 07:34:43 -0400 |
commit | 46f4582e7cbc5f30127183812d4da875782518f5 (patch) | |
tree | 64ec73c1251abeac12d1e1da6a37fb05ba60bd55 /arch/x86/boot/compressed | |
parent | 0e1cadb05bba2293b4575c8cab275313d181d94f (diff) |
efi: Generalize handle_ramdisks() and rename to handle_cmdline_files().
The handle_cmdline_files now takes the option to handle as a string,
and returns the loaded data through parameters, rather than taking
an x86 specific setup_header structure. For ARM, this will be used
to load a device tree blob in addition to initrd images.
Signed-off-by: Roy Franz <roy.franz@linaro.org>
Acked-by: Mark Salter <msalter@redhat.com>
Reviewed-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/boot/compressed')
-rw-r--r-- | arch/x86/boot/compressed/eboot.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index ef2181a96d09..beb07a4529ac 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c | |||
@@ -442,6 +442,8 @@ struct boot_params *make_boot_params(void *handle, efi_system_table_t *_table) | |||
442 | u16 *s2; | 442 | u16 *s2; |
443 | u8 *s1; | 443 | u8 *s1; |
444 | int i; | 444 | int i; |
445 | unsigned long ramdisk_addr; | ||
446 | unsigned long ramdisk_size; | ||
445 | 447 | ||
446 | sys_table = _table; | 448 | sys_table = _table; |
447 | 449 | ||
@@ -500,9 +502,14 @@ struct boot_params *make_boot_params(void *handle, efi_system_table_t *_table) | |||
500 | 502 | ||
501 | memset(sdt, 0, sizeof(*sdt)); | 503 | memset(sdt, 0, sizeof(*sdt)); |
502 | 504 | ||
503 | status = handle_ramdisks(sys_table, image, hdr); | 505 | status = handle_cmdline_files(sys_table, image, |
506 | (char *)(unsigned long)hdr->cmd_line_ptr, | ||
507 | "initrd=", hdr->initrd_addr_max, | ||
508 | &ramdisk_addr, &ramdisk_size); | ||
504 | if (status != EFI_SUCCESS) | 509 | if (status != EFI_SUCCESS) |
505 | goto fail2; | 510 | goto fail2; |
511 | hdr->ramdisk_image = ramdisk_addr; | ||
512 | hdr->ramdisk_size = ramdisk_size; | ||
506 | 513 | ||
507 | return boot_params; | 514 | return boot_params; |
508 | fail2: | 515 | fail2: |