[OpenBIOS] PPC: QEMU breaks static variables in OpenBIOS
Tarl Neustaedter
tarl-b2 at tarl.net
Wed Jan 2 22:36:27 CET 2013
On 2013-Jan-2 16:35 , Mark Cave-Ayland wrote:
>
>
> Thanks for the response. The existing comments in
> arch/ppc/qemu/start.S suggest that we have a 1MB space at the top of
> (physical) RAM which we could use for this:
>
> /* Memory map:
> *
> * Top +-------------------------+
> * | |
> * | ROM into RAM (1 MB) |
> * | |
Ah. That suggests that qemu expects the PROM code to copy itself lock,
stock and barrel (code, text, and data) from ROM into memory and then
jump into the the copied code. That way you wouldn't need to separately
relocate your .text section.
More information about the OpenBIOS
mailing list