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

Detlev Zundel dzu at denx.de
Fri Jul 24 17:13:01 CEST 2009


Hi Aggrwal,

>> > 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?

That's the spirit, indeed.

Cheers
  Detlev

-- 
(define Y (lambda (f)
	    ((lambda (g) (f (lambda (x) ((g g) x))))
	     (lambda (g) (f (lambda (x) ((g g) x)))))))
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the U-Boot mailing list