[coreboot] question about post_cache_as_ram() function

Myles Watson mylesgw at gmail.com
Fri Dec 17 22:06:58 CET 2010

On Fri, Dec 17, 2010 at 2:03 PM, Stefan Reinauer <stepan at coreboot.org> wrote:
> * Myles Watson <mylesgw at gmail.com> [101217 22:01]:
>> On Fri, Dec 17, 2010 at 1:50 PM, Stefan Reinauer
>> <stefan.reinauer at 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.


More information about the coreboot mailing list