[U-Boot] [PATCH] ppc: Fix roll over bug in flush_cache()
Wolfgang Denk
wd at denx.de
Tue Feb 10 00:47:32 CET 2009
Dear Kumar Gala,
In message <1233929286-24413-1-git-send-email-galak at 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 <galak at kernel.crashing.org>
> ---
> 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
More information about the U-Boot
mailing list