[coreboot] seabios failure with v2 and -fomit-frame-pointer
Stefan Reinauer
stepan at coresystems.de
Thu Mar 19 01:49:23 CET 2009
Kevin O'Connor wrote:
> On Wed, Mar 18, 2009 at 02:17:57PM -0600, Myles Watson wrote:
>
>> I think the breakage is occurring before the payload executes, but I'm
>> not sure of that.
>>
>> qemu: fatal: Trying to execute code outside RAM or ROM at 0xf10002ba
>>
>
> The bug is in src/arch/i386/boot/boot.c. The inline assembly in
> jmp_to_elf_entry uses the "g" flag to pass in parameters. However,
> "g" allows gcc to use stack relative addressing of parameters.
>
Does it? I could not find that in the GCC Inline Assembly FAQ.
Would changing the parameters to "m" solve the problem?
Stefan
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
More information about the coreboot
mailing list