genode/repos/base-hw/src/core/include/spec/arm_v6/cpu.h

51 lines
973 B
C
Raw Normal View History

/*
2014-07-15 14:51:27 +02:00
* \brief CPU driver for core
* \author Norman Feske
* \author Martin stein
* \date 2012-08-30
*/
/*
* Copyright (C) 2012-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 _CORE__INCLUDE__SPEC__ARM_V6__CPU_H_
#define _CORE__INCLUDE__SPEC__ARM_V6__CPU_H_
/* core includes */
2014-07-15 14:51:27 +02:00
#include <spec/arm/cpu_support.h>
namespace Genode { class Cpu; }
2014-07-15 14:51:27 +02:00
class Genode::Cpu : public Arm
{
public:
/**
* Cache type register
*/
struct Ctr : Arm::Ctr
{
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 */ }
};
#endif /* _CORE__INCLUDE__SPEC__ARM_V6__CPU_H_ */