All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [ppc patch] grub-mkimage
Date: Fri, 03 Dec 2004 16:58:26 +0000	[thread overview]
Message-ID: <87llcfjp3h.fsf@marco.marco-g.com> (raw)
In-Reply-To: <CEBF73DC-454A-11D9-A999-000A95A0560C@penguinppc.org> (Hollis Blanchard's message of "Fri, 3 Dec 2004 10:45:58 -0600")

Hollis Blanchard <hollis@penguinppc.org> writes:

> On Dec 3, 2004, at 10:10 AM, Marco Gerards wrote:
>>
>>>> AS Hollis said, I'm working on the relocator for PPC at the moment.
>>>> It is quite easy, but PPC_REL24 is a bit more complex.  It is used
>>>> for
>>>> relative jumps.  That means the module should be loaded close to
>>>> grubof, which IMHO really sucks...
>>>
>>> 24-bit offsets give you a 16 MiB range, is that really a problem?
>>
>> The modules are loaded into the free memory of grubof.  And grubof is
>> loaded to where it is linked, IIRC.  So I think that would cause
>> problems. :)
>
> I don't understand this. By "free memory of grubof" do you mean the
> heap? Right now, grubof is linked and loaded at 0x200000 (size is
> ~100KiB right now), and uses memory from 0x4000 to 0x200000 as heap
> space. That means the heap is well within the 16MiB 24-bit offset
> range.

Ok, cool.  In that case there is no problem.  I thought that you
changed init.c so it adds all free memory.  In that case it could
cause problems if you have a few hundreds of megs of memory.  Perhaps
we just discussed this and the change was never made.

Thanks,
Marco




  reply	other threads:[~2004-12-03 17:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-03  5:36 [ppc patch] grub-mkimage Hollis Blanchard
2004-12-03 12:50 ` Marco Gerards
2004-12-03 13:49   ` Johan Rydberg
2004-12-03 14:14     ` Marco Gerards
2004-12-03 15:13       ` Johan Rydberg
2004-12-03 15:20         ` Marco Gerards
2004-12-03 16:04           ` Johan Rydberg
2004-12-03 16:13             ` Marco Gerards
2004-12-03 15:18   ` Hollis Blanchard
2004-12-03 16:10     ` Marco Gerards
2004-12-03 16:45       ` Hollis Blanchard
2004-12-03 16:58         ` Marco Gerards [this message]
2004-12-03 17:12       ` Yoshinori K. Okuji
2004-12-03 17:18 ` Yoshinori K. Okuji
2005-01-01 22:42 ` [ppc patch] grub-mkimage and module loading Hollis Blanchard
2005-01-02 13:47   ` Marco Gerards

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=87llcfjp3h.fsf@marco.marco-g.com \
    --to=metgerards@student.han.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.