[U-Boot] hi, I could not understand the memsize.c, somebody help me?

Kenneth Johansson kenneth at southpole.se
Fri Jul 24 17:21:21 CEST 2009


On Fri, 2009-07-24 at 20:01 +0530, Aggrwal Poonam-B10812 wrote:
> > > I could not understand common/memsize.c, how it works?
> > 
> > It writes markers at specific memory locations and then reads 
> > these back. The algorithm is chosen to be fast but still to 
> > be able to detect mirrored address ranges and other memory errors.
> Suppose I configure MAX_MEM)SIZE as 1Gig and the actual memory on the
> board is 512M, is this function supposed to return 512M?

Yes in this case but if you had 384M it would have returned 256M.




More information about the U-Boot mailing list