mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 17:01:07 +00:00
85ba3259f8
Enhance the VM state, that can be accessed by a VMM, by a member 'unsigned irq_injection'. In Kernel::Vm::proceed check, whether irq_injection is set. If so, check whether irq_injection is a non-secure IRQ. If so, let the PIC raise this IRQ in the VM and reset irq_injection. Ref #1497
38 lines
757 B
C++
38 lines
757 B
C++
/*
|
|
* \brief CPU context of a virtual machine for TrustZone
|
|
* \author Stefan Kalkowski
|
|
* \author Martin Stein
|
|
* \date 2013-10-30
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2013 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.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__SPEC__IMX53__VM_STATE_H_
|
|
#define _INCLUDE__SPEC__IMX53__VM_STATE_H_
|
|
|
|
/* Genode includes */
|
|
#include <cpu/cpu_state.h>
|
|
|
|
namespace Genode
|
|
{
|
|
/**
|
|
* CPU context of a virtual machine
|
|
*/
|
|
struct Vm_state;
|
|
}
|
|
|
|
struct Genode::Vm_state : Genode::Cpu_state_modes
|
|
{
|
|
Genode::addr_t dfar;
|
|
Genode::addr_t ttbr[2];
|
|
Genode::addr_t ttbrc;
|
|
Genode::addr_t irq_injection;
|
|
};
|
|
|
|
#endif /* _INCLUDE__SPEC__IMX53__VM_STATE_H_ */
|