[coreboot] v3 challenge: global variables

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Feb 4 17:47:47 CET 2008

On 04.02.2008 17:12, ron minnich wrote:
> So, this is an example of the reason for the (void *) param I was
> suggesting some time back. Such needs come up.
> One option is to have a convention that globals are at the base of the
> stack, rounded to 64k.
> e.g. %esp & 0xffff0000 is where globals live.

That could work, although in a slightly different way. I would store a
pointer at the base of the stack. That pointer would point to a struct
which has all global info.



More information about the coreboot mailing list