From: Wolfgang Denk Date: Tue, 10 Feb 2009 00:47:32 +0100 Subject: [U-Boot] [PATCH] ppc: Fix roll over bug in flush_cache() In-Reply-To: <1233929286-24413-1-git-send-email-galak@kernel.crashing.org> References: <1233929286-24413-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20090209234732.DA03F832E893@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 Kumar Gala, In message <1233929286-24413-1-git-send-email-galak@kernel.crashing.org> you wrote: > If we call flush_cache(0xfffff000, 0x1000) it would never > terminate the loop since end = 0xffffffff and we'd roll over > our counter from 0xfffffe0 to 0 (assuming a 32-byte cache line) > > Signed-off-by: Kumar Gala > --- > lib_ppc/cache.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) Applied, thanks. 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 "Probably the best operating system in the world is the [operating system] made for the PDP-11 by Bell Laboratories." - Ted Nelson, October 1977