2012-10-23 17:12:09 +02:00
|
|
|
/*
|
2014-07-15 14:51:27 +02:00
|
|
|
* \brief CPU driver for core
|
2012-10-23 17:12:09 +02:00
|
|
|
* \author Norman Feske
|
2012-12-03 17:21:35 +01:00
|
|
|
* \author Martin stein
|
2012-10-23 17:12:09 +02:00
|
|
|
* \date 2012-08-30
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2012-2017 Genode Labs GmbH
|
2012-10-23 17:12:09 +02: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.
|
2012-10-23 17:12:09 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-20 20:52:51 +01:00
|
|
|
#ifndef _CORE__INCLUDE__SPEC__ARM_V6__CPU_H_
|
|
|
|
#define _CORE__INCLUDE__SPEC__ARM_V6__CPU_H_
|
2012-10-23 17:12:09 +02:00
|
|
|
|
|
|
|
/* core includes */
|
2014-07-15 14:51:27 +02:00
|
|
|
#include <spec/arm/cpu_support.h>
|
2012-10-23 17:12:09 +02:00
|
|
|
|
2016-01-19 13:33:04 +01:00
|
|
|
namespace Genode { class Cpu; }
|
2014-07-09 12:03:17 +02:00
|
|
|
|
2014-07-15 14:51:27 +02:00
|
|
|
|
|
|
|
class Genode::Cpu : public Arm
|
2014-07-09 12:03:17 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2012-10-23 17:12:09 +02:00
|
|
|
/**
|
|
|
|
* Cache type register
|
|
|
|
*/
|
2014-07-09 12:03:17 +02:00
|
|
|
struct Ctr : Arm::Ctr
|
2012-10-23 17:12:09 +02:00
|
|
|
{
|
|
|
|
struct P : Bitfield<23, 1> { }; /* page mapping restriction on */
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If page descriptor bits [13:12] are restricted
|
|
|
|
*/
|
|
|
|
static bool restricted_page_mappings() {
|
|
|
|
return Ctr::P::get(Ctr::read()); }
|
|
|
|
|
2014-07-15 14:51:27 +02:00
|
|
|
|
|
|
|
/*************
|
|
|
|
** Dummies **
|
|
|
|
*************/
|
|
|
|
|
|
|
|
static void wait_for_interrupt() { /* FIXME */ }
|
2014-07-09 12:03:17 +02:00
|
|
|
};
|
2012-10-23 17:12:09 +02:00
|
|
|
|
2016-01-20 20:52:51 +01:00
|
|
|
#endif /* _CORE__INCLUDE__SPEC__ARM_V6__CPU_H_ */
|