diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 11:16:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 11:16:29 -0400 |
commit | 046f153343e33dcad1be7f6249ea6ff1c6fd9b58 (patch) | |
tree | 46da03ea84e1a4fe8eff53891332e715cbf31f3e /arch/x86/boot | |
parent | a0abcf2e8f8017051830f738ac1bf5ef42703243 (diff) | |
parent | e33655a386ed3b26ad36fb97a47ebb1c2ca1e928 (diff) |
Merge branch 'x86-efi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next
Pull x86 EFI updates from Peter Anvin:
"A collection of EFI changes. The perhaps most important one is to
fully save and restore the FPU state around each invocation of EFI
runtime, and to not choke on non-ASCII characters in the boot stub"
* 'x86-efi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
efivars: Add compatibility code for compat tasks
efivars: Refactor sanity checking code into separate function
efivars: Stop passing a struct argument to efivar_validate()
efivars: Check size of user object
efivars: Use local variables instead of a pointer dereference
x86/efi: Save and restore FPU context around efi_calls (i386)
x86/efi: Save and restore FPU context around efi_calls (x86_64)
x86/efi: Implement a __efi_call_virt macro
x86, fpu: Extend the use of static_cpu_has_safe
x86/efi: Delete most of the efi_call* macros
efi: x86: Handle arbitrary Unicode characters
efi: Add get_dram_base() helper function
efi: Add shared printk wrapper for consistent prefixing
efi: create memory map iteration helper
efi: efi-stub-helper cleanup
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/compressed/eboot.c | 3 | ||||
-rw-r--r-- | arch/x86/boot/compressed/head_64.S | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index 4703a6c4b8e3..0331d765c2bb 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c | |||
@@ -1087,8 +1087,7 @@ struct boot_params *make_boot_params(struct efi_config *c) | |||
1087 | hdr->type_of_loader = 0x21; | 1087 | hdr->type_of_loader = 0x21; |
1088 | 1088 | ||
1089 | /* Convert unicode cmdline to ascii */ | 1089 | /* Convert unicode cmdline to ascii */ |
1090 | cmdline_ptr = efi_convert_cmdline_to_ascii(sys_table, image, | 1090 | cmdline_ptr = efi_convert_cmdline(sys_table, image, &options_size); |
1091 | &options_size); | ||
1092 | if (!cmdline_ptr) | 1091 | if (!cmdline_ptr) |
1093 | goto fail; | 1092 | goto fail; |
1094 | hdr->cmd_line_ptr = (unsigned long)cmdline_ptr; | 1093 | hdr->cmd_line_ptr = (unsigned long)cmdline_ptr; |
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index 0d558ee899ae..2884e0c3e8a5 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S | |||
@@ -452,7 +452,7 @@ efi32_config: | |||
452 | .global efi64_config | 452 | .global efi64_config |
453 | efi64_config: | 453 | efi64_config: |
454 | .fill 11,8,0 | 454 | .fill 11,8,0 |
455 | .quad efi_call6 | 455 | .quad efi_call |
456 | .byte 1 | 456 | .byte 1 |
457 | #endif /* CONFIG_EFI_STUB */ | 457 | #endif /* CONFIG_EFI_STUB */ |
458 | 458 | ||