mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 07:22:25 +00:00
da5d182ad3
Issue #1832
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
/*
|
|
* \brief Kernel-specific thread meta data
|
|
* \author Norman Feske
|
|
* \date 2016-03-11
|
|
*
|
|
* On most platforms, the 'Genode::Native_thread' type is private to the
|
|
* base framework. However, on NOVA, we make the type publicly available to
|
|
* expose the low-level thread-specific capability selectors to user-level
|
|
* virtual-machine monitors (Seoul or VirtualBox).
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2016 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__NOVA__NATIVE_THREAD_H_
|
|
#define _INCLUDE__NOVA__NATIVE_THREAD_H_
|
|
|
|
#include <base/stdint.h>
|
|
|
|
namespace Genode { struct Native_thread; }
|
|
|
|
struct Genode::Native_thread
|
|
{
|
|
enum { INVALID_INDEX = ~0UL };
|
|
|
|
addr_t ec_sel; /* selector for execution context */
|
|
addr_t exc_pt_sel; /* base of event portal window */
|
|
bool is_vcpu;
|
|
|
|
Native_thread() : ec_sel(INVALID_INDEX),
|
|
exc_pt_sel(INVALID_INDEX), is_vcpu(false) { }
|
|
};
|
|
|
|
#endif /* _INCLUDE__NOVA__NATIVE_THREAD_H_ */
|