All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Redefining GRUB_MOD_GAP in init.c
Date: Tue, 29 Jan 2008 09:36:41 +0100	[thread overview]
Message-ID: <87bq75c9k6.fsf@xs4all.nl> (raw)
In-Reply-To: <20080128090910.GC13368@thorin> (Robert Millan's message of "Mon,  28 Jan 2008 10:09:10 +0100")

Robert Millan <rmh@aybabtu.com> writes:

> On Sun, Jan 27, 2008 at 10:25:32PM -0500, Pavel Roskin wrote:
>> Hi Robert,
>> 
>> I'm concerned about your latest commit:
>> 
>>         * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
>>         `GRUB_MOD_GAP' for platforms in which it's not defined.
>> 
>> The algorithm for calculating the start of the modules should be exactly
>> the same in grub-mkimage and in the core.  Any fallbacks should be
>> coherent if possible.  Therefore, I think it would be better to define
>> GRUB_MOD_GAP only in header files.
>
> Sorry, I should've really sent this for review;  it wasn't such an obvious fix
> as you pointed out.  I'll get that moved to headers as you suggest.
>
>> Also, I don't see how GRUB_MOD_GAP would not be defined to 0x8000 for
>> i386-ieee1275 platform considering that
>> include/grub/i386/ieee1275/kernel.h simply includes
>> include/grub/powerpc/ieee1275/kernel.h
>
> Sounds strange.. I'm wondering that myself.  Will check..
>
>> It's hard for me to understand why kern/powerpc/ieee1275/init.c can be
>> used on any platform other than PowerPC.  I was assuming that my changes
>> would not affect other platforms.
>> 
>> [...]
>> I suggest that i386-ieee1275 stops using any files for PowerPC.
>> kernel.h is not big, so it shouldn't be a problem to copy it.  As for
>> init.c, it should be either copied or moved to a more suitable place.
>
> I think it's safe to say that the only part of kern/powerpc/ieee1275/init.c
> that only works on PowerPC is its name ;-)
>
> Maybe it's time we move out those generic files under powerpc directory.  I
> propose moving the following:
>
> kern/powerpc/ieee1275/init.c
> kern/powerpc/ieee1275/cmain.c
> kern/powerpc/ieee1275/openfw.c
> loader/powerpc/ieee1275/multiboot2.c

Move it where?

--
Marco




  parent reply	other threads:[~2008-01-29  8:35 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28  3:25 Redefining GRUB_MOD_GAP in init.c Pavel Roskin
2008-01-28  9:09 ` Robert Millan
2008-01-28  9:30   ` GRUB_MOD_GAP for non-ieee1275 ELF platforms Robert Millan
2008-01-28 13:44     ` Pavel Roskin
2008-01-28 16:29       ` Robert Millan
2008-01-28 16:34         ` Pavel Roskin
2008-01-28 16:57           ` Robert Millan
2008-01-29  8:38         ` Marco Gerards
2008-01-29  9:06           ` Robert Millan
2008-01-29  9:32             ` Marco Gerards
2008-01-29 10:04               ` Robert Millan
2008-01-30 21:42           ` Pavel Roskin
2008-01-30 22:03             ` Robert Millan
2008-01-30 22:15               ` Pavel Roskin
2008-01-30 22:26                 ` Robert Millan
2008-01-30 22:48                   ` Pavel Roskin
2008-01-31  8:48                     ` Marco Gerards
2008-01-31 10:47                     ` Robert Millan
2008-01-31 11:38                       ` Yoshinori K. Okuji
2008-01-31 12:47                         ` Robert Millan
2008-01-31 13:30                           ` Yoshinori K. Okuji
2008-01-29  8:36   ` Marco Gerards [this message]
2008-01-29  9:05     ` Redefining GRUB_MOD_GAP in init.c Robert Millan
2008-01-29  9:21       ` Marco Gerards
2008-01-29  9:27         ` CVS (Re: Redefining GRUB_MOD_GAP in init.c) Robert Millan
2008-01-29 11:15           ` Marco Gerards
2008-01-29 11:42             ` Yoshinori K. Okuji
2008-01-29 11:25           ` Marco Gerards
2008-01-30 21:35             ` Pavel Roskin

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=87bq75c9k6.fsf@xs4all.nl \
    --to=mgerards@xs4all.nl \
    --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.