grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] decouple mmap parsing and implement Multiboot mmap in the lo


From: Robert Millan
Subject: Re: [PATCH] decouple mmap parsing and implement Multiboot mmap in the loader
Date: Wed, 13 Aug 2008 21:51:09 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Aug 13, 2008 at 07:52:59PM +0200, Marco Gerards wrote:
> >  #include <grub/types.h>
> >  #include <grub/symbol.h>
> > +#include <grub/multiboot.h>        /* For struct grub_mmap_entry, which is 
> > also
> > +                              needed by Multiboot.  */
> 
> Isn't it better to split the header file?  This seems like a hack.

The definition is part of the Multiboot spec, so it really needs to be present
in multiboot.h.

We could also define it separately as grub_mmap_entry in multiboot.h and keep
the grub_machine_mmap_entry definition in pc/init.h.  Then other arches could
have their own grub_machine_mmap_entry variant which _does_ differ from
grub_mmap_entry (like coreboot).

What do you think?
  
> > Index: loader/i386/pc/multiboot.c
> > ===================================================================
> > --- loader/i386/pc/multiboot.c      (revision 1802)
> > +++ loader/i386/pc/multiboot.c      (working copy)
> > @@ -78,14 +78,60 @@
> >        grub_free ((void *) mbi->cmdline);
> >        grub_free (mbi);
> >      }
> > -
> > -
> > +  
> 
> Hm? :-)

Some minor janitor work ;-)

-- 
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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]