7582396e9c
* enables world-switch using ARM virtualization extensions * split TrustZone and virtualization extensions hardly from platforms, where it is not used * extend 'Vm_session' interface to enable configuration of guest-physical memory * introduce VM destruction syscall * add virtual machine monitor for hw_arndale that emulates a simplified version of ARM's Versatile Express Cortex A15 board for a Linux guest OS Fixes #1405
25 lines
526 B
C++
25 lines
526 B
C++
/*
|
|
* \brief CPU driver for core
|
|
* \author Martin stein
|
|
* \author Stefan Kalkowski
|
|
* \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()); }
|
|
|
|
|
|
unsigned Cpu::primary_id() { return Board::PRIMARY_MPIDR_AFF_0; }
|