From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] decouple mmap parsing by using grub_available_iterate()
Date: Tue, 12 Aug 2008 00:07:23 +0200 [thread overview]
Message-ID: <20080811220723.GA22204@thorin> (raw)
In-Reply-To: <20080811212418.GC6883@thorin>
On Mon, Aug 11, 2008 at 11:24:18PM +0200, Robert Millan wrote:
> On Mon, Aug 11, 2008 at 06:39:17PM +0300, Vesa Jääskeläinen wrote:
> > Robert Millan wrote:
> > >Hi,
> > >
> > >This patch decouples memory map parsing into a separate
> > >grub_available_iterate()
> > >function, for i386-pc and i386-coreboot. It is mostly intended as a
> > >cleanup.
> > >Makes the code more modular so that, for example, the multiboot loader can
> > >construct a memory map without having specific knowledge of the platform,
> > >allows to recombine various init.c & mmap.c in different ways, etc.
> >
> > Why not use grub_mmap prefix ?
>
> You mean like grub_mmap_iterate ? Seems fine (since the change is trivial,
> I'll skip sending a new patch).
Now that I think, grub_mmap_iterate() would be misleading, as we're only
iterating through the parts of mmap that are marked as available, not through
the whole thing. How about grub_mmap_available_iterate?
But this reminds me; with this interface, it's not possible to gather
information about regions other than the ones that are marked as available.
However, AFAICS, there's no purpose for marking a region as reserved, since
the OS is only going to use regions marked as available anyway.
Therefore, if we implement support for Multiboot mmaps in our loader (as
defined in the spec), we wouldn't be able to include non-available regions in
our map.
Does anyone see a problem in this? If so, then I think we'd need a function
that can for example handle a third argument, for example `type', for this
purpose.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2008-08-11 22:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 15:22 [PATCH] decouple mmap parsing by using grub_available_iterate() Robert Millan
2008-08-11 15:39 ` Vesa Jääskeläinen
2008-08-11 21:24 ` Robert Millan
2008-08-11 22:07 ` Robert Millan [this message]
2008-08-12 13:25 ` [PATCH] decouple mmap parsing and implement Multiboot mmap in the loader Robert Millan
2008-08-12 16:29 ` Robert Millan
2008-08-12 22:38 ` Robert Millan
2008-08-12 23:44 ` Robert Millan
2008-08-13 17:52 ` Marco Gerards
2008-08-13 19:51 ` Robert Millan
2008-08-16 14:50 ` Marco Gerards
2008-08-17 16:31 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080811220723.GA22204@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.