x86, boot: Move checking of cmd_line_ptr out of common path
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:19:58 +0000 (12:19 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:26:01 +0000 (15:26 -0800)
commit16a4baa642cf448742aaf150c4daa093f9dbebbb
tree108cd2724433574435eff2e7f1d94adc84120859
parentf1da834cd902f5e5df0b11a3948fc43c6071b590
x86, boot: Move checking of cmd_line_ptr out of common path

cmdline.c::__cmdline_find_option... are shared between 16-bit setup code
and 32/64 bit decompressor code.

for 32/64 only path via kexec, we should not check if ptr is less 1M.
as those cmdline could be put above 1M, or even 4G.

Move out accessible checking out of __cmdline_find_option()
So decompressor in misc.c can parse cmdline correctly.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-18-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/boot/boot.h
arch/x86/boot/cmdline.c