mirror of
https://github.com/apache/nuttx.git
synced 2026-08-31 06:03:12 +00:00
bcm2711/mailbox: Invalidate cache before read
Cache must be invalidated before the buffer is read since the VideoCore's write will not invalidate the cache. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
bc8212df09
commit
c8231f97b0
1 changed files with 2 additions and 0 deletions
|
|
@ -282,6 +282,8 @@ static int bcm2711_mbox_sendreq(FAR uint32_t *buf, uint8_t n)
|
|||
* docs).
|
||||
*/
|
||||
|
||||
up_invalidate_dcache(bufptr, bufptr + n); /* So we read fresh data */
|
||||
|
||||
if (retbuf != bufptr)
|
||||
{
|
||||
ipcerr("Expected %08x, got %08x", bufptr, res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue