Thread (7 messages) flat view 7 messages, 4 authors, 2011-05-04

Re: Read/write BCSR registers of PPC460EX

From: Stefan Roese <sr@denx.de>
Date: 2011-05-02 13:42:55

Hi Efti,

On Monday 02 May 2011 15:36:15 linuxppc-dev wrote:
Dear Stefan,

I have changed CPLD/BCSR address with 0x4E1000000.

static unsigned long mem_addr =  0x4E1000000;
Thats a 64bit address, so you need this:

static unsigned long long mem_addr =  0x4E1000000ULL;

You should have seen a compilation warning about this too.
 
Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help