2016-11-07 18:00:24 +01:00
|
|
|
/*
|
2017-02-21 13:46:59 +01:00
|
|
|
* \brief CPU cache maintenance functions for ARM v6
|
2016-11-07 18:00:24 +01:00
|
|
|
* \author Norman Feske
|
|
|
|
* \author Martin stein
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2012-08-30
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2012-2017 Genode Labs GmbH
|
2016-11-07 18:00:24 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 13:23:52 +01:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2016-11-07 18:00:24 +01:00
|
|
|
*/
|
|
|
|
|
2019-03-13 15:43:56 +01:00
|
|
|
#include <spec/arm/cpu.h>
|
2016-11-07 18:00:24 +01:00
|
|
|
|
2019-07-10 15:00:33 +02:00
|
|
|
void Board::Cpu::invalidate_data_cache() {
|
2017-02-21 13:46:59 +01:00
|
|
|
asm volatile ("mcr p15, 0, %[rd], c7, c6, 0" :: [rd]"r"(0) : ); }
|
2016-11-07 18:00:24 +01:00
|
|
|
|
|
|
|
|
2019-07-10 15:00:33 +02:00
|
|
|
void Board::Cpu::clean_invalidate_data_cache() {
|
2017-02-21 13:46:59 +01:00
|
|
|
asm volatile ("mcr p15, 0, %[rd], c7, c14, 0" :: [rd]"r"(0) : ); }
|