From: Wolfgang Denk Date: Mon, 04 Oct 2010 12:21:06 +0200 Subject: [U-Boot] [PATCH 10/19] x86: Move ECC initialisation outside RAM initialisation In-Reply-To: <4CA9A70B.6030302@gmail.com> References: <1286163483-21697-1-git-send-email-graeme.russ@gmail.com> <1286163483-21697-11-git-send-email-graeme.russ@gmail.com> <4CA9A582.8070107@mvista.com> <4CA9A70B.6030302@gmail.com> Message-ID: <20101004102106.836071539A0@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 Graeme Russ, In message <4CA9A70B.6030302@gmail.com> you wrote: > > >> +#if CONFIG_SYS_SDRAM_ECC_ENABLE > >> + /* Skip ECC initialization if not starting from cold-reset */ > >> + movl %ebx, %ecx > >> + andl $GD_FLG_COLD_BOOT, %ecx > >> + jz ecc_init_ret > > > > But the label you added is called 'init_ecc_ret'. Are you sure the > > name is correct here? > > Yes, if the board has not been cold-booted (i.e. a new U-Boot image has > been loaded into RAM and executed) we must skip ECC initialization (it > destroys the contents of memory) > > > > >> + mov $init_ecc_ret, %ebp > >> + jmp init_ecc > >> + > >> +init_ecc_ret: Sergei did not question the code itself, but the possible confusion between "ecc_init_ret" versus "init_ecc_ret", which both were added with the same commit, so it seems likely both should actually be the _same_ name? 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 Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month. - Wernher von Braun