Bin Meng 4019e54dc6 powerpc: tqm834x: Fix build warnings in initdram()
With gcc 4.9, it produces the following warnings:

  CC      board/tqc/tqm834x/tqm834x.o
  board/tqc/tqm834x/tqm834x.c: In function 'initdram':
  board/tqc/tqm834x/tqm834x.c:325:12: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]
      (((base + size - 1) >> CSBNDS_EA_SHIFT) &
              ^
  board/tqc/tqm834x/tqm834x.c:80:2: note: containing loop
      for(cs = 0; cs < 4; ++cs) {
      ^

There is an integer overflow when cs = 3. To fix it, change
parameters of set_cs_bounds() to ulong.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2016-01-25 10:40:00 -05:00
..
2015-09-11 17:12:57 -04:00
2015-11-05 08:24:42 +01:00
2015-11-12 17:38:08 +01:00
2015-09-11 14:59:16 -04:00
2015-08-05 08:44:06 -06:00
2015-09-07 13:41:04 +02:00
2016-01-20 10:19:38 -05:00
2015-11-21 21:50:17 -05:00
2015-11-21 21:50:17 -05:00
2015-11-21 21:50:17 -05:00
2016-01-25 10:40:00 -05:00
2015-12-12 15:56:08 -05:00
2015-11-21 21:50:17 -05:00
2016-01-19 08:31:21 -05:00