mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-12 07:44:18 +00:00
after updating a piece of FLASH memory, there is an inherent cache coherence issue. This is because the write happens through a side channel that is outside of the memory model of the system: writes happen through a CSR that feed data to pages of FLASH. Reads happen through direct-mapped memory regions that are unaware of write mutations. Thus, after writing a page of memory, if you try to access it, sometimes you'll read the old cached value instead of the new updated value. This patch introduces a mandatory dcache flush after every FLASH write, so that any cached FLASH regions are re-fetched. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||