genode/repos/base-hw/src/core/spec/exynos5/cpu.cc

25 lines
526 B
C++
Raw Normal View History

2014-07-15 14:51:27 +02:00
/*
* \brief CPU driver for core
* \author Martin stein
2015-02-06 11:26:39 +01:00
* \author Stefan Kalkowski
2014-07-15 14:51:27 +02:00
* \date 2011-11-03
*/
/*
* Copyright (C) 2011-2012 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* core includes */
#include <board.h>
#include <cpu.h>
using namespace Genode;
unsigned Cpu::executing_id() { return Mpidr::Aff_0::get(Mpidr::read()); }
2015-02-06 11:26:39 +01:00
2014-07-15 14:51:27 +02:00
unsigned Cpu::primary_id() { return Board::PRIMARY_MPIDR_AFF_0; }