Subject: Re: Read/write BCSR registers of PPC460EX

From: Stefan Roese <[email-masked]>
Date: Mon, 2 May 2011 15:42:45 +0200

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: [email-masked]