mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
foc: Use L2-cache synchronization calls
Replace L1 cache clean operations with L2 versions.
This commit is contained in:
parent
f3ba58059a
commit
6e034efca4
@ -137,8 +137,7 @@ namespace Genode {
|
||||
l4_task_unmap(L4_BASE_TASK_CAP,
|
||||
l4_fpage(addr, L4_LOG2_PAGESIZE, L4_FPAGE_RW),
|
||||
L4_FP_OTHER_SPACES);
|
||||
|
||||
l4_cache_clean_data(local_base, local_base + size);
|
||||
l4_cache_dma_coherent(local_base, local_base + size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,6 @@ void Ram_session_component::_clear_ds(Dataspace_component *ds)
|
||||
memset((void *)ds->phys_addr(), 0, ds->size());
|
||||
|
||||
if (ds->write_combined())
|
||||
Fiasco::l4_cache_clean_data((Genode::addr_t)ds->phys_addr(),
|
||||
(Genode::addr_t)ds->phys_addr() + ds->size());
|
||||
Fiasco::l4_cache_dma_coherent(ds->phys_addr(), ds->phys_addr() + ds->size());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user