foc: Use L2-cache synchronization calls

Replace L1 cache clean operations with L2 versions.
This commit is contained in:
Sebastian Sumpf 2013-02-12 17:00:03 +01:00 committed by Norman Feske
parent f3ba58059a
commit 6e034efca4
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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());
}