]> git.baikalelectronics.ru Git - kernel.git/commit
x86/efi: Store upper bits of command line buffer address in ext_cmd_line_ptr
authorRoy Franz <roy.franz@linaro.org>
Wed, 15 Apr 2015 23:32:24 +0000 (16:32 -0700)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 17 Apr 2015 14:46:32 +0000 (15:46 +0100)
commit1f635404cc5b7e42bfb14cb8a7c631fc34163dc7
tree5a5d4b1a2026c945a968d8acdb23380715ab4a00
parent391f9a1fccfebb3676420363a8448bb3e5cdc49e
x86/efi: Store upper bits of command line buffer address in ext_cmd_line_ptr

Until now, the EFI stub was only setting the 32 bit cmd_line_ptr in
the setup_header structure, so on 64 bit platforms this could be truncated.
This patch adds setting the upper bits of the buffer address in
ext_cmd_line_ptr.  This case was likely never hit, as the allocation
for this buffer is done at the lowest available address.  Only
x86_64 kernels have this problem, as the 1-1 mapping mandated
by EFI ensures that all memory is 32 bit addressable on 32 bit
platforms.  The EFI stub does not support mixed mode, so the
32 bit kernel on 64 bit firmware case does not need to be handled.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/boot/compressed/eboot.c