bcm: add cache invalidate before accessing prop buffer
This commit is contained in:
parent
a3b5e3994f
commit
adf96a529e
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,7 @@ vcreq(int tag, void *buf, int vallen, int rsplen)
|
|||
prop->taglen = vallen;
|
||||
if(vallen > 0)
|
||||
memmove(prop->data, buf, vallen);
|
||||
cachedwbinvse(prop, prop->len);
|
||||
cachedwbinvse(prop, n);
|
||||
for(;;){
|
||||
aprop = busaddr? dmaaddr(prop) : (uintptr)prop;
|
||||
vcwrite(ChanProps, aprop);
|
||||
|
@ -158,6 +158,7 @@ vcreq(int tag, void *buf, int vallen, int rsplen)
|
|||
return -1;
|
||||
busaddr = 0;
|
||||
}
|
||||
cachedinvse(prop, n);
|
||||
if(prop->req == RspOk &&
|
||||
prop->tag == tag &&
|
||||
(prop->taglen&TagResp)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue