e9b3569f44
This functionality is only needed in bootstrap now that kernel and userland share the same address-space. Fix #2699
34 lines
973 B
C++
34 lines
973 B
C++
/*
|
|
* \brief CPU driver for core Arm Cortex A8 specific implementation
|
|
* \author Martin stein
|
|
* \author Stefan Kalkowski
|
|
* \date 2015-12-14
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2015-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.
|
|
*/
|
|
|
|
#include <cpu.h>
|
|
#include <kernel/kernel.h>
|
|
#include <kernel/cpu.h>
|
|
|
|
|
|
void Genode::Cpu::translation_added(Genode::addr_t const base,
|
|
Genode::size_t const size)
|
|
{
|
|
using namespace Kernel;
|
|
|
|
/*
|
|
* The Cortex-A8 CPU can't use the L1 cache on page-table
|
|
* walks. Therefore, as the page-tables lie in write-back cacheable
|
|
* memory we've to clean the corresponding cache-lines even when a
|
|
* page table entry is added. We only do this as core as the kernel
|
|
* adds translations solely before MMU and caches are enabled.
|
|
*/
|
|
Cpu::clean_invalidate_data_cache_by_virt_region(base, size);
|
|
}
|