L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
1
5/*
6 * (c) 2013 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7 * economic rights: Technische Universität Dresden (Germany)
8 *
9 * License: see LICENSE.spdx (in this directory or the directories above)
10 */
11#pragma once
12
13#include_next <l4/sys/thread.h>
14
29
35l4_thread_arm_set_tpidruro_u(l4_cap_idx_t thread, l4_addr_t tpidruro,
36 l4_utcb_t *utcb) L4_NOTHROW;
37
57
58/* IMPLEMENTATION -----------------------------------------------------------*/
59
61l4_thread_arm_set_tpidruro_u(l4_cap_idx_t thread, l4_addr_t tpidruro,
63{
64 l4_msg_regs_t *v = l4_utcb_mr_u(utcb);
66 v->mr[1] = tpidruro;
67 return l4_ipc_call(thread, utcb, l4_msgtag(L4_PROTO_THREAD, 2, 0, 0),
69}
70
73{
74 return l4_thread_arm_set_tpidruro_u(thread, tpidruro, l4_utcb());
75}
l4_msgtag_t l4_thread_arm_set_tpidruro(l4_cap_idx_t thread, l4_addr_t tpidruro) L4_NOTHROW
Set the TPIDRURO thread specific register.
Definition thread.h:65
unsigned long l4_addr_t
Address type.
Definition l4int.h:34
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:335
l4_msgtag_t l4_ipc_call(l4_cap_idx_t object, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Object call (usual invocation).
Definition ipc.h:565
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
Definition types.h:404
@ L4_PROTO_THREAD
Protocol for messages to a thread object.
Definition types.h:53
@ L4_THREAD_ARM_TPIDRURO_OP
Set TPIDRURO register.
Definition thread.h:722
L4_thread_ex_regs_flags_arm64
Arm64 specific L4::Thread::ex_regs() flags.
Definition thread.h:47
@ L4_THREAD_EX_REGS_ARM64_SET_EL_EL1
Set exception level of thread to EL1t.
Definition thread.h:55
@ L4_THREAD_EX_REGS_ARM64_SET_EL_KEEP
Keep current exception level of thread (default).
Definition thread.h:51
@ L4_THREAD_EX_REGS_ARM64_SET_EL_MASK
Exception level set mask.
Definition thread.h:49
@ L4_THREAD_EX_REGS_ARM64_SET_EL_EL0
Set exception level of thread to EL0.
Definition thread.h:53
#define L4_IPC_NEVER
never timeout
Definition __timeout.h:76
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
Definition utcb.h:346
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:159
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
Message tag data structure.
Definition types.h:153
Encapsulation of the message-register block in the UTCB.
Definition utcb.h:68
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
Definition utcb.h:69