From: Joshua Lamorie <jpl@xiphos.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] v2p4 porting troubles
Date: Tue, 16 Mar 2004 10:43:21 -0500 [thread overview]
Message-ID: <004101c40b6d$69274aa0$cb01a8c0@xiphos.ca> (raw)
In-Reply-To: 009401c40b03$8800ae90$cb01a8c0@xiphos.ca
Gidday again,
In further investigating this problem we have seen a pattern. The
failure constantly occurs when the instruction is compiled as...
stw rX,0(r0)
where X is 1-31.
We see that instead of writing the data to the address pointed to by r0,
it writes the data to address 0x0 of physical memory (we have virtual memory
disabled). When I look at the PowerPC Processor Reference Guide (pp.
80-82), it mentions that for the addressing modes Register-Indirect with
Immediate Index, Register-Indirect with Index, and Register Indirect, if rA
is set to 0 (refering also to r0) then an index of 0 is used instead of the
value of r0.
So if this is the problem, why is our compiler making code that does
this? I'm new to PPC assembler, so perhaps I'm interpreting this
incorrectly.
Can you recommend a toolchain that would be better than the one we're
currently using? (listed below)
Thanks in advance.
Joshua Lamorie
Director of Brownian Motion Control
Xiphos Technologies Inc.
----- Original Message -----
[snip]
> The Linux tools compile...
>
> stw r9,0(r0)
>
> However, the LEDs respond with blankity nothingness. Using XMD, we swap
> around these general purpose (according to how we read the docs) registers
> (r8,r10, r1 etc.) , and sometimes it works and sometimes it doesn't.
[snip]
> We are using crosstools-0.26, with gcc-3.3-20040112 and glibc-2.3.2
next prev parent reply other threads:[~2004-03-16 15:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-16 3:05 [U-Boot-Users] v2p4 porting troubles Joshua Lamorie
2004-03-16 15:43 ` Joshua Lamorie [this message]
2004-03-16 16:01 ` Wolfgang Denk
2004-03-16 19:41 ` Eric St-Jean
2004-03-16 20:36 ` Wolfgang Denk
2004-03-16 23:01 ` Joshua Lamorie
2004-03-16 23:40 ` Wolfgang Denk
2004-03-17 9:47 ` Joakim Tjernlund
2004-03-17 11:16 ` Joakim Tjernlund
2004-03-17 2:02 ` Peter Ryser
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='004101c40b6d$69274aa0$cb01a8c0@xiphos.ca' \
--to=jpl@xiphos.ca \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox