2012-08-10 06:14:38 +00:00
|
|
|
/*
|
|
|
|
* \brief Thread state
|
|
|
|
* \author Alexander Boettcher
|
|
|
|
* \date 2012-08-09
|
|
|
|
*
|
|
|
|
* This file contains the NOVA specific thread state.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2012-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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__BASE__THREAD_STATE_H_
|
|
|
|
#define _INCLUDE__BASE__THREAD_STATE_H_
|
|
|
|
|
|
|
|
#include <cpu/cpu_state.h>
|
|
|
|
|
|
|
|
namespace Genode {
|
|
|
|
|
2012-08-22 10:10:04 +00:00
|
|
|
struct Thread_state : public Cpu_state
|
|
|
|
{
|
|
|
|
bool is_vcpu;
|
|
|
|
addr_t sel_exc_base;
|
|
|
|
|
2012-11-12 16:48:18 +00:00
|
|
|
Thread_state() : Cpu_state(), is_vcpu(false), sel_exc_base(~0UL) { }
|
|
|
|
|
|
|
|
Thread_state(bool is_vcpu, addr_t sel_exc_base)
|
|
|
|
: is_vcpu(is_vcpu), sel_exc_base(sel_exc_base) { }
|
2012-08-22 10:10:04 +00:00
|
|
|
};
|
2012-08-10 06:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__BASE__THREAD_STATE_H_ */
|