Re: [PATCH v3 08/12] x86, boot: Don't check if cmd_line_ptr is accessible in misc/decompressor()

2012-11-21 Thread Yinghai Lu
On Wed, Nov 21, 2012 at 9:21 AM, H. Peter Anvin wrote: > On 11/20/2012 11:16 PM, Yinghai Lu wrote: >> >> At that stage, it is already in 32bit protected mode or 64bit mode. >> so we do not need to check if ptr less 1M. >> >> When go from other boot loader (kexec) instead of boot/ code path. >> >>

Re: [PATCH v3 08/12] x86, boot: Don't check if cmd_line_ptr is accessible in misc/decompressor()

2012-11-21 Thread H. Peter Anvin
On 11/20/2012 11:16 PM, Yinghai Lu wrote: At that stage, it is already in 32bit protected mode or 64bit mode. so we do not need to check if ptr less 1M. When go from other boot loader (kexec) instead of boot/ code path. Move out accessible checking out __cmdline_find_option So misc.c will

Re: [PATCH v3 08/12] x86, boot: Don't check if cmd_line_ptr is accessible in misc/decompressor()

2012-11-21 Thread H. Peter Anvin
On 11/20/2012 11:16 PM, Yinghai Lu wrote: At that stage, it is already in 32bit protected mode or 64bit mode. so we do not need to check if ptr less 1M. When go from other boot loader (kexec) instead of boot/ code path. Move out accessible checking out __cmdline_find_option So misc.c will

Re: [PATCH v3 08/12] x86, boot: Don't check if cmd_line_ptr is accessible in misc/decompressor()

2012-11-21 Thread Yinghai Lu
On Wed, Nov 21, 2012 at 9:21 AM, H. Peter Anvin h...@zytor.com wrote: On 11/20/2012 11:16 PM, Yinghai Lu wrote: At that stage, it is already in 32bit protected mode or 64bit mode. so we do not need to check if ptr less 1M. When go from other boot loader (kexec) instead of boot/ code path.

[PATCH v3 08/12] x86, boot: Don't check if cmd_line_ptr is accessible in misc/decompressor()

2012-11-20 Thread Yinghai Lu
At that stage, it is already in 32bit protected mode or 64bit mode. so we do not need to check if ptr less 1M. When go from other boot loader (kexec) instead of boot/ code path. Move out accessible checking out __cmdline_find_option So misc.c will parse cmdline and have debug print out.

[PATCH v3 08/12] x86, boot: Don't check if cmd_line_ptr is accessible in misc/decompressor()

2012-11-20 Thread Yinghai Lu
At that stage, it is already in 32bit protected mode or 64bit mode. so we do not need to check if ptr less 1M. When go from other boot loader (kexec) instead of boot/ code path. Move out accessible checking out __cmdline_find_option So misc.c will parse cmdline and have debug print out.