All of lore.kernel.org
 help / color / mirror / Atom feed
* Redefining GRUB_MOD_GAP in init.c
@ 2008-01-28  3:25 Pavel Roskin
  2008-01-28  9:09 ` Robert Millan
  0 siblings, 1 reply; 29+ messages in thread
From: Pavel Roskin @ 2008-01-28  3:25 UTC (permalink / raw)
  To: Robert Millan, The development of GRUB 2

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.

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.

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

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.

-- 
Regards,
Pavel Roskin



^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2008-01-31 13:31 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` Redefining GRUB_MOD_GAP in init.c Marco Gerards
2008-01-29  9:05     ` 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

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.