Re: [PATCH -v3 2/2] x86: more early console output from compressed/misc.c

From: Yinghai Lu
Date: Mon Aug 02 2010 - 17:25:20 EST


On 08/02/2010 02:08 PM, H. Peter Anvin wrote:
> On 08/02/2010 01:59 PM, H. Peter Anvin wrote:
>> On 08/02/2010 12:35 PM, Yinghai Lu wrote:
>>>
>>> it seems I can not global variables in arch/x86/boot/compressed/misc.c
>>>
>>
>> I just looked at it, it's the fact that we don't relocate the GOT that
>> is causing problems. It's relatively easy to fix: here is a patch, but
>> in grand Linus tradition it is completely untested.
>>
>
> Untested indeed... here is one which doesn't clobber live registers.
>
> -hpa
>

still doesn't work.

with global early_serial_base got :

early console in setup code
[ 0.000000] bootconsole [uart0] enabled


with static early_serial_base got :

early console in setup code
early console in decompress_kernel
decompress_kernel:
input: [0x24a0269-0x2e8b234], output: 0x1000000, heap: [0x2e909c0-0x2e979bf]

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
[ 0.000000] bootconsole [uart0] enabled


Thanks

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/