OpenBLT: shared: commit data cache on SharedParamsWriteByIndex()
This commit is contained in:
parent
21f28d5812
commit
4c7cd85f8b
|
@ -29,6 +29,9 @@
|
||||||
/****************************************************************************************
|
/****************************************************************************************
|
||||||
* Include files
|
* Include files
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
|
// To know CORTEX_MODEL
|
||||||
|
#include "cmparams.h"
|
||||||
|
|
||||||
#include <stddef.h> /* Standard definitions (NULL). */
|
#include <stddef.h> /* Standard definitions (NULL). */
|
||||||
#include "shared_params.h" /* Shared parameters header. */
|
#include "shared_params.h" /* Shared parameters header. */
|
||||||
|
|
||||||
|
@ -153,6 +156,10 @@ bool SharedParamsWriteByIndex(uint32_t idx, uint8_t value)
|
||||||
SharedParamsWriteChecksum();
|
SharedParamsWriteChecksum();
|
||||||
/* Update the result. */
|
/* Update the result. */
|
||||||
result = true;
|
result = true;
|
||||||
|
#if CORTEX_MODEL == 7
|
||||||
|
// If we have a cache, drop the relevant cache lines.
|
||||||
|
SCB_CleanDCache_by_Addr((uint32_t*)&sharedParamsBuffer, sizeof(sharedParamsBuffer));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/* Give the result back to the caller. */
|
/* Give the result back to the caller. */
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue