[U-Boot] [PATCH v2] ARM926ejs: Add routines to invalidate D-Cache
Reinhard Meyer
u-boot at emk-elektronik.de
Mon Aug 8 12:25:23 CEST 2011
Hi Aneesh,
> On Monday 08 August 2011 03:29 PM, Reinhard Meyer wrote:
>> Dear Albert, Aneesh, Hong,
>>
>> There seem to be functions of type
>>
>> xxx(start, end) and xxx(start, size).
>>
>> Can't it be somehow decided to use only one variant
>> in all cases (flush, invalidate)?
>
> The u-boot standard seems to be xxx(start, end) where the operation
> will be done on the range [start, end). This is what I figured out by
> looking at the prototypes and existing implementations when I did the
> armv7 work and I have stuck to this standard.
>
> Hong also seems to be following the same standard.
>
> If there is no objection, I shall add this definition to the README I
> am adding.
Maybe its arch specific, I just saw this in another thread, thats why I asked:
+++ b/arch/mips/cpu/mips32/cpu.c
@@ -52,6 +52,11 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
void flush_cache(ulong start_addr, ulong size)
Best Regards,
Reinhard
More information about the U-Boot
mailing list