[U-Boot-Users] purpose of calling 'cache_post_dinvalidate' before writing
Sachin Rane
SRane at alphion.com
Tue Jan 2 09:25:40 CET 2007
Hi,
I just want to know the purpose of calling 'invalidate'
(cache_post_dinvalidate) command before writing cached area in file
'cache_8xx.S'.
The code snippet is appended for reference.
Regards,
Sachin Rane
cache_post_test1:
mflr r0
stw r0, 4(r1)
stwu r3, -4(r1)
stwu r4, -4(r1)
bl cache_post_dwb
bl cache_post_dinvalidate
/* Write the negative pattern to the test area */
lwz r0, 0(r1)
mtctr r0
li r0, 0xff
lwz r3, 4(r1)
subi r3, r3, 1
1:
stbu r0, 1(r3)
bdnz 1b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070102/b9ae885a/attachment.htm
More information about the U-Boot
mailing list