[coreboot] v3 challenge: global variables

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Feb 4 18:09:12 CET 2008

On 04.02.2008 17:49, Stefan Reinauer wrote:
> * Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> [080204 17:42]:
>> It's not that easy. I need the location of the buffer and the current
>> offset inside the buffer. The one global variable would have pointed to
>> a struct containing all that info.
> You want that pointer persistant anyways, because you will likely have
> to pass it to linux, too. So why not have the first 4 byte of the buffer
> as "buffer pointer"?

Hm yes. That still leaves us with the problem to locate the buffer. We
cannot rely on gcc to place it on stack in the location we want.



More information about the coreboot mailing list