
3 Jun
2013
3 Jun
'13
1:25 p.m.
On Mon, Jun 3, 2013 at 8:21 AM, Wolfgang Denk wd@denx.de wrote:
Dear Stefano Babic,
In message 51AC61A6.9050609@denx.de you wrote:
It is better to fix it directly into this patch. Can you fix it by casting to phys_size_t and resubmit ?
gd->ram_size = (phys_size_t)CONFIG_DDR_MB * SZ_1M;
Please do NOT use these terrible SZ_* defines. Never, ever.
They are dangerous and should be avoided.
Do you mind to explain why?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750