mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
base: extend cache maintainance functionality
Introduce two new cache maintainance functions: * cache_clean_invalidate_data * cache_invalidate_data used to flush or invalidate data-cache lines. Both functions are typically empty, accept for the ARM architecture. The commit provides implementations for the base-hw kernel, and Fiasco.OC. Fixes #4207
This commit is contained in:
committed by
Christian Helmuth
parent
ed0cc5330e
commit
e7067050be
@@ -1,3 +1,5 @@
|
||||
LIBS += timeout-arm
|
||||
|
||||
vpath cache.cc $(REP_DIR)/src/lib/base/arm
|
||||
|
||||
include $(REP_DIR)/lib/mk/base-sel4.inc
|
||||
|
||||
32
repos/base-sel4/src/lib/base/arm/cache.cc
Normal file
32
repos/base-sel4/src/lib/base/arm/cache.cc
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* \brief Implementation of the cache operations
|
||||
* \author Stefan Kalkowski
|
||||
* \date 2021-06-24
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2021 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.
|
||||
*/
|
||||
|
||||
#include <base/log.h>
|
||||
#include <cpu/cache.h>
|
||||
|
||||
void Genode::cache_coherent(Genode::addr_t, Genode::size_t)
|
||||
{
|
||||
error(__func__, " not implemented for this kernel!");
|
||||
}
|
||||
|
||||
|
||||
void Genode::cache_clean_invalidate_data(Genode::addr_t, Genode::size_t)
|
||||
{
|
||||
error(__func__, " not implemented for this kernel!");
|
||||
}
|
||||
|
||||
|
||||
void Genode::cache_invalidate_data(Genode::addr_t, Genode::size_t)
|
||||
{
|
||||
error(__func__, " not implemented for this kernel!");
|
||||
}
|
||||
Reference in New Issue
Block a user