From: Geoff Levand <geoffrey.levand@am.sony.com>
To: Maik Nijhuis <maik@cs.vu.nl>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: ps3 64-bit kernel: patched prpmc2800.c (fwd)
Date: Sat, 02 Jun 2007 11:39:32 -0700 [thread overview]
Message-ID: <4661B964.7060907@am.sony.com> (raw)
In-Reply-To: <Pine.GSO.4.63.0705250829380.19095@hydra.cs.vu.nl>
Maik Nijhuis wrote:
> While compiling a 64-bit kernel for the playstation 3 I noticed that
> arch/powerpc/boot/prpmc2800.c doesn't compile. The assembler complains
> about a constant that is too big.
>
> And then this error follows:
>
> /tmp/ccYHAOD7.s: Assembler messages:
> /tmp/ccYHAOD7.s:9: Error: operand out of range (0xffffffffffff7fff is not
> between 0x0000000000000000 and 0x00000000ffffffff)
>
> I managed to fix this issue as follows: At the end of
> arch/powerpc/boot/prpmc2800.c, there is an assembly instruction
>
> rlwinm 10,10,0,~(1<<15)
>
> I replaced this by
>
> rlwinm 10,10,0,~(1<<15) & ((1<<32)-1)
>
> I am running 64-bit gentoo linux with binutils 2.17.50.0.16. It has been
> compiled on my ps3 using gentoo ebuild scripts.
>
> Could you please either fix binutils or apply the above patch?
The trouble is that I have no way to test that change. I don't have the
hardware. Since that file is not for PS3, the best thing to do
is to not build that file when not building for prpmc2800. I will
post a patch that does that.
-Geoff
next prev parent reply other threads:[~2007-06-02 19:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 6:39 ps3 64-bit kernel: patched prpmc2800.c (fwd) Maik Nijhuis
2007-06-02 18:39 ` Geoff Levand [this message]
2007-06-03 1:51 ` Paul Mackerras
2007-06-03 23:25 ` Mark A. Greer
2007-06-04 8:14 ` Segher Boessenkool
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=4661B964.7060907@am.sony.com \
--to=geoffrey.levand@am.sony.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=maik@cs.vu.nl \
/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.