Read/write BCSR registers of PPC460EX

Stefan Roese sr at denx.de
Mon May 2 23:42:45 EST 2011


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 at denx.de


More information about the Linuxppc-dev mailing list