From 3abc589f9321415772e37caccf894393c3bcbc5a Mon Sep 17 00:00:00 2001 From: robertmh Date: Sun, 27 Jan 2008 23:00:49 +0000 Subject: [PATCH] 2008-01-27 Robert Millan * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip `GRUB_MOD_GAP' for platforms in which it's not defined. --- ChangeLog | 5 +++++ kern/powerpc/ieee1275/init.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 311ddd213..4449d9bff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-27 Robert Millan + + * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip + `GRUB_MOD_GAP' for platforms in which it's not defined. + 2008-01-27 Robert Millan Get grub-emu to build again (including parallel builds). diff --git a/kern/powerpc/ieee1275/init.c b/kern/powerpc/ieee1275/init.c index 6d08140f0..b86e4f5c1 100644 --- a/kern/powerpc/ieee1275/init.c +++ b/kern/powerpc/ieee1275/init.c @@ -242,5 +242,10 @@ grub_get_rtc (void) grub_addr_t grub_arch_modules_addr (void) { +/* Only needed for Apple hardware (therefore, powerpc). */ +#ifndef GRUB_MOD_GAP +#define GRUB_MOD_GAP 0 +#endif + return ALIGN_UP(_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN); }