Skip to content
Snippets Groups Projects
Commit 76d354f4 authored by Mingkai Hu's avatar Mingkai Hu Committed by Andy Fleming
Browse files

powerpc/mpc85xx: explicit cast the SDRAM size to type phys_size_t


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: default avatarMingkai Hu <Mingkai.Hu@freescale.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 7dd09b54
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment