From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: Carlos Roberto do Nascimento Costa <crncosta@linux.vnet.ibm.com>
Subject: Re: [PATCH] Compilation PowerPC64
Date: Wed, 03 Dec 2008 12:29:44 -0500 [thread overview]
Message-ID: <1228325384.4049.22.camel@dv> (raw)
In-Reply-To: <1228321247.4049.0.camel@dv>
On Wed, 2008-12-03 at 11:20 -0500, Pavel Roskin wrote:
> r1923 has no "out of memory" problem. r1924 doesn't compile.
I think I understand something now. "out of memory" is caused by
heap_init() inside grub_claim_heap() failing due to memory overlap (by
the way, I hate functions inside functions).
In r1923:
_start=0x10000
_end=0x23640
addr=0x200000
(addr + len)=0x3fffff
In r1933:
_start=0x200000
_end=0x213658
addr=0x200000
(addr + len)=0x3fffff
Thus, we have an overlap. This is caused by r1928. Changing the link
address in conf/powerpc-ieee1275.rmk from 0x200000 to 0x100000 makes
_start equal 0x100000 and resolves the "out of memory" problem.
The "addr" variable comes from HEAP_MIN_SIZE, and it's also 0x200000.
I'm testing PowerPC code in qemu, which doesn't provide the memory
information, so the problem may not exist on real machines.
If linking at 0x200000 is important, we could allocate heap after _end.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2008-12-03 17:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 19:58 [PATCH] Compilation PowerPC64 Manoel
2008-11-24 21:30 ` Pavel Roskin
2008-11-25 2:22 ` peter cros
2008-11-28 13:54 ` Manoel Rebelo Abranches
2008-11-28 19:40 ` Robert Millan
2008-12-03 16:20 ` Pavel Roskin
2008-12-03 17:29 ` Pavel Roskin [this message]
2008-12-03 17:50 ` Manoel Rebelo Abranches
2008-12-04 6:11 ` Pavel Roskin
2008-11-28 19:56 ` Robert Millan
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=1228325384.4049.22.camel@dv \
--to=proski@gnu.org \
--cc=crncosta@linux.vnet.ibm.com \
--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.