Skip to content
Snippets Groups Projects
user avatar
Mingkai Hu authored
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>
76d354f4
History
Name Last commit Last update