On Wed, 2008-01-16 at 20:33 +0100, Robert Millan wrote:
> On Wed, Jan 16, 2008 at 01:22:48PM -0500, Pavel Roskin wrote:
> > 
> > I guess the simplest approach would be to assume that we have a certain
> > amount of memory that would be enough for GRUB.
> 
> What a mess.  What does Linux do?  They have to support callbacks to get the
> memory map, so it can't just claim everything.

I don't see any references to "available" in the Linux code, except for
some exotic machines.  Neither does yaboot use anything like that.

yaboot loads under qemu, but hangs trying to load the Linux kernel (both
extracted from the Fedora 8 rescue disk), so I don't know if Linux would
boot.

It seems to me that Linux uses "#size-cells" and "#address-cells" (see
drivers/of/base.c and arch/powerpc/kernel/prom_parse.c)

As for yaboot, I have no idea.  It gets a handle for "/memory" but never
uses it.  I don't see any references to "cells".

> In any case, if you have to make this assumption, considering reusing the
> HEAP_MIN_SIZE macro, which has the same meaning.

OK, I'll try.

-- 
Regards,
Pavel Roskin


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to