On Fri, Dec 17, 2010 at 2:03 PM, Stefan Reinauer stepan@coreboot.org wrote:
- Myles Watson mylesgw@gmail.com [101217 22:01]:
On Fri, Dec 17, 2010 at 1:50 PM, Stefan Reinauer stefan.reinauer@coresystems.de wrote:
Can we automatically determine the value of RAMTOP during build time?
Yes. It's a config variable. It's not the top of physical RAM, it's the top of what coreboot will use.
I know..
Sorry :)
I was thinking along the line of not having it configured but calculated to the size we actually need rather than making up to the user/developer to choose a much too large value that gets copy&wasted around for the next 25 chipsets we're going to implement.
So can we determine the "right" value of RAMTOP?
I think the only unknown is stack usage. Actually, I guess you could calculate it right now, since stack size is a parameter. Something like code + data + stack + padding to make it an even amount = RAMTOP.
Thanks, Myles