mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 23:47:16 +00:00
Partial fix to an cache cleaning problem
This commit is contained in:
parent
35a282bc30
commit
4f1ca4cbb7
1 changed files with 9 additions and 6 deletions
|
|
@ -664,7 +664,11 @@ int up_addrenv_coherent(FAR const group_addrenv_t *addrenv)
|
|||
|
||||
cp15_invalidate_icache();
|
||||
|
||||
/* Clean D-Cache in each region. */
|
||||
/* Clean D-Cache in each region.
|
||||
* REVISIT: Cause crashes when trying to clean unmapped memory. In order
|
||||
* for this to work, we need to know the exact size of each region (as we
|
||||
* do now for the heap region).
|
||||
*/
|
||||
|
||||
#warning REVISIT... causes crashes
|
||||
#if 0
|
||||
|
|
@ -675,12 +679,11 @@ int up_addrenv_coherent(FAR const group_addrenv_t *addrenv)
|
|||
arch_clean_dcache(CONFIG_ARCH_DATA_VBASE,
|
||||
CONFIG_ARCH_DATA_VBASE +
|
||||
CONFIG_ARCH_DATA_NPAGES * MM_PGSIZE - 1);
|
||||
|
||||
#if 0 /* Not yet implemented */
|
||||
arch_clean_dcache(CONFIG_ARCH_HEAP_VBASE,
|
||||
CONFIG_ARCH_HEAP_VBASE +
|
||||
CONFIG_ARCH_HEAP_NPAGES * MM_PGSIZE - 1);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
arch_clean_dcache(CONFIG_ARCH_HEAP_VBASE,
|
||||
CONFIG_ARCH_HEAP_VBASE + addrenv->heapsize);
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue