From: Wolfgang Denk Date: Thu, 06 Feb 2014 13:21:55 +0100 Subject: [U-Boot] [PATCH] nds32: fix code/data will be corrupted on ram in rum time In-Reply-To: <1391675928-28370-1-git-send-email-uboot@andestech.com> References: <1391675928-28370-1-git-send-email-uboot@andestech.com> Message-ID: <20140206122155.C6699382201@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Andes, In message <1391675928-28370-1-git-send-email-uboot@andestech.com> you wrote: > From: rick > > can not execute get_ram_size(), because the > text/data will be corrupted by itself > in specific case. You must be doing something wrong then. Of course you have to run get_ram_size() _before_ relocation to RAM. You cannot test the memory you are executing from. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Q: How do you spell "onomatopoeia"? A: The way it sounds.