/* * \brief Cache operations * \author Christian Prochaska * \author Stefan Kalkowski * \date 2014-05-13 */ /* * Copyright (C) 2014-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #ifndef _INCLUDE__CPU__CACHE_H_ #define _INCLUDE__CPU__CACHE_H_ #include namespace Genode { /* * Make D-Cache and I-Cache coherent * * That means write back the D-Cache lines, and invalidate the I-Cache lines */ void cache_coherent(Genode::addr_t addr, Genode::size_t size); /* * Write back and delete D-Cache (commonly known as flush) */ void cache_clean_invalidate_data(Genode::addr_t addr, Genode::size_t size); /* * Delete D-Cache lines only */ void cache_invalidate_data(Genode::addr_t addr, Genode::size_t size); } #endif /* _INCLUDE__CPU__CACHE_H_ */