[U-Boot] powerpc/mpc85xx: explicit cast the SDRAM size to type phys_size_t

Andy Fleming afleming at freescale.com
Fri Jun 21 22:40:25 CEST 2013


On Fri, Apr 12, 2013 at 03:56:28PM +0800, Mingkai Hu wrote:
> To avoid sign extension problem, use explicit casting to cast
> the SDRAM size to type phys_size_t, or else, if the SDRAM size
> is 2G(0x80000000), it will be extended to 0xffffffff80000000
> when phys_size_t is type 'unsigned long long'.
> 
> Signed-off-by: Mingkai Hu <Mingkai.Hu at freescale.com>

Applied, thanks!

Andy



More information about the U-Boot mailing list