public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* a question on "iowrite32()"
@ 2007-06-06 19:30 Ming Liu
  2007-06-07  6:20 ` Domen Puncer
  0 siblings, 1 reply; 6+ messages in thread
From: Ming Liu @ 2007-06-06 19:30 UTC (permalink / raw)
  To: linuxppc-embedded

Dear all,
I am writing a device driver for my customized PLB hardware module on my 
PPC405 & Xilinx ML403 architecture. In the driver code, I use a 
"iowrite32()" function to initiate a DMA transfer. However, I found that if 
I program as "iowrite32(0x12345678, address);", actually I am writing 
0x87654321 to that address. However if I write a standalone program without 
a Linux OS, the Xilinx function "XIo_Out32()" just write the correct value 
0x12345678 into address. Can anyone explain my why this happens? I know 
that PPC405 is a big-endian system. But I don't think this is a endian 
problem. After all endian is only an issue of the CPU architecture, not the 
OS. Am I right?

Thanks for your hints.

BR
Ming

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-08 13:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 19:30 a question on "iowrite32()" Ming Liu
2007-06-07  6:20 ` Domen Puncer
2007-06-07 10:01   ` Arnd Bergmann
2007-06-07 11:20     ` Ming Liu
2007-06-07 14:09       ` Arnd Bergmann
2007-06-08 13:51         ` Ming Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox