[U-Boot-Users] purpose of calling 'cache_post_dinvalidate' before writing

2 Jan
2007
2 Jan
'07
9:25 a.m.
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
6699
Age (days ago)
6699
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sachin Rane