2016-12-13 18:19:44 +00:00
|
|
|
/*
|
|
|
|
* \brief Thread state
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2010-01-20
|
|
|
|
*
|
|
|
|
* This file contains the Fiasco.OC specific part of the thread state.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2010-2017 Genode Labs GmbH
|
2016-12-13 18:19:44 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2016-12-13 18:19:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__FOC__THREAD_STATE_H_
|
|
|
|
#define _INCLUDE__FOC__THREAD_STATE_H_
|
|
|
|
|
|
|
|
#include <base/capability.h>
|
|
|
|
#include <base/thread_state.h>
|
2020-11-27 17:10:19 +00:00
|
|
|
#include <foc/syscall.h>
|
2016-12-13 18:19:44 +00:00
|
|
|
|
|
|
|
namespace Genode { struct Foc_thread_state; }
|
|
|
|
|
|
|
|
|
|
|
|
struct Genode::Foc_thread_state : Thread_state
|
|
|
|
{
|
2020-11-27 17:10:19 +00:00
|
|
|
Foc::l4_cap_idx_t kcap; /* thread's gate cap in its PD */
|
|
|
|
int id; /* ID of gate capability */
|
|
|
|
addr_t utcb; /* thread's UTCB in its PD */
|
2016-12-13 18:19:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*/
|
2020-11-27 17:10:19 +00:00
|
|
|
Foc_thread_state() : kcap(Foc::L4_INVALID_CAP), id(0), utcb(0) { }
|
2016-12-13 18:19:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__FOC__THREAD_STATE_H_ */
|