grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 3/3] Work around "CLAIM failed" on PowerMac


From: Pavel Roskin
Subject: Re: [PATCH 3/3] Work around "CLAIM failed" on PowerMac
Date: Sun, 27 Jan 2008 04:27:31 -0500
User-agent: Internet Messaging Program (IMP) H3 (4.1.4)

Quoting Robert Millan <address@hidden>:

On Sat, Jan 26, 2008 at 06:28:23PM -0500, Pavel Roskin wrote:
-  return ALIGN_UP(_end, GRUB_MOD_ALIGN);
+  return ALIGN_UP(_end + GRUB_MOD_GAP, GRUB_MOD_ALIGN);

Did you check if the requirement is just a bigger alignment rather than
a gap?

Yes, I checked that.  I wish it would be bigger alignment, but it's not.

_end is 0x29NNN, so the module base 0x32000 is OK, but 0x31000 or 0x30000 is not OK. 0x30000 is better aligned than 0x32000.

I also tried adding more code to the core image, and the 0x8000 gap was still OK.

We could increase GRUB_MOD_ALIGN, say, to 0x40000 (256k), but we could eventually hit the limit for the code and have this problem again. I'll rather add a couple of lines and avoid a problem that could re-appear suddenly and for no obvious reason.

Of course, we would be very unlikely to hit a higher limit, like 0x100000 (1Mb). After all, 640k should be enough for everyone ;-)

It's your call.

--
Regards,
Pavel Roskin




reply via email to

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