From mboxrd@z Thu Jan 1 00:00:00 1970 From: jiangtao.jit@gmail.com (jiangtao.jit) Date: Sat, 27 Aug 2011 11:44:50 +0800 Subject: Need help with the Uncompressed kernel be overriden after decompress_kernel called? Message-ID: <201108271144484062556@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi all. In arch/x86/boot/compressed/head_32.S before the call of decompress_kernel() it load the address of z_extract_offset_negative(%ebx) as the output address and actually the output_len of the decompressed kernel is larger than extract_offset so the decompressed data will override the uncompressed data begin at input_data Is that the case? How does it worked as the the input buffer is covered by the output buffer while uncompressing? It confused me a lot. or I'd made some misunderstanding on the decompressing routine? Thanks. 2011-08-27 jiangtao.jit