[U-Boot] [PATCH] fix get_ram_size memory corruption

Gerd Hoffmann kraxel at redhat.com
Tue Oct 21 14:26:54 CEST 2014


  Hi,

> I cannot see any memory corruption.  If I understand you correctly,
> the contents of address 0x00000000 should be overwritten here?

Depends on the address space layout.  vexpress-a9 has flash mapped at
0x00000000.  RAM starts at 0x60000000, and four bytes at 0x60000000 get
corrupted.

Possibly it also depends on whenever the board calls get_ram_size() in
the first place.  For the vexpress the calls are in board-specific code
(board/armltd/vexpress/vexpress_common.c).

cheers,
  Gerd




More information about the U-Boot mailing list