From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 24 Jul 2009 17:13:01 +0200 Subject: [U-Boot] hi, I could not understand the memsize.c, somebody help me? In-Reply-To: <1BD5CFC378ED0946B688E0C9BA2EF09512A271@zin33exm24.fsl.freescale.net> (Aggrwal Poonam-B's message of "Fri, 24 Jul 2009 20:01:40 +0530") References: <2ae8403e0906242014k7e37b8f0tebaffaeeaea3f6bc@mail.gmail.com> <20090724061121.D0CA6832E416@gemini.denx.de> <1BD5CFC378ED0946B688E0C9BA2EF09512A271@zin33exm24.fsl.freescale.net> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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