On Wed, Jan 16, 2008 at 01:22:48PM -0500, Pavel Roskin wrote: > > On Wed, 2008-01-16 at 11:40 +0100, Robert Millan wrote: > > On Wed, Jan 16, 2008 at 03:19:49AM -0500, Pavel Roskin wrote: > > > > > > The unresolved problem is that the "/memory/available" property is not > > > available. I get the "grub rescue" prompt, but all commands fail with > > > "out of memory". > > > > Does this mean all memory is ours to deal with as pleased? :-) > > > > I suggest you try poking it by trying to read all existing memory in your > > address space. > > 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. In any case, if you have to make this assumption, considering reusing the HEAP_MIN_SIZE macro, which has the same meaning. -- Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel