Re: [U-Boot] [PATCH] ppc: Fix roll over bug in flush_cache()

2009-02-09 Thread Wolfgang Denk
Dear Kumar Gala, In message <1233929286-24413-1-git-send-email-ga...@kernel.crashing.org> you wrote: > If we call flush_cache(0xf000, 0x1000) it would never > terminate the loop since end = 0x and we'd roll over > our counter from 0xfe0 to 0 (assuming a 32-byte cache line) > > Si

[U-Boot] [PATCH] ppc: Fix roll over bug in flush_cache()

2009-02-06 Thread Kumar Gala
If we call flush_cache(0xf000, 0x1000) it would never terminate the loop since end = 0x and we'd roll over our counter from 0xfe0 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(-) di