28 #include <l4/sys/utcb.h> 29 #include <l4/sys/ipc.h> 233 l4_thread_control_exc_handler_u(
l4_cap_idx_t exc_handler,
260 l4_thread_control_bind_u(
l4_utcb_t *thread_utcb,
582 l4_thread_modify_sender_add_u(
l4_umword_t match_mask,
687 #include <l4/sys/ipc.h> 707 if (l4_error_u(ret, utcb))
732 l4_thread_control_exc_handler_u(
l4_cap_idx_t exc_handler,
845 l4_thread_control_start_u(
l4_utcb());
851 l4_thread_control_pager_u(pager,
l4_utcb());
857 l4_thread_control_exc_handler_u(exc_handler,
l4_utcb());
864 l4_thread_control_bind_u(thread_utcb, task,
l4_utcb());
870 l4_thread_control_alien_u(
l4_utcb(), on);
876 l4_thread_control_ux_host_syscall_u(
l4_utcb(), on);
882 return l4_thread_control_commit_u(thread,
l4_utcb());
891 return l4_thread_switch_u(to_thread,
l4_utcb());
900 return l4_thread_stats_time_u(thread, us,
l4_utcb());
906 return l4_thread_vcpu_resume_start_u(
l4_utcb());
913 return l4_thread_vcpu_resume_commit_u(thread, tag,
l4_utcb());
932 return l4_thread_register_del_irq_u(thread, irq,
l4_utcb());
942 v->
mr[1] = vcpu_state;
956 v->
mr[0] = L4_THREAD_VCPU_CONTROL_EXT_OP;
957 v->
mr[1] = ext_vcpu_state;
974 l4_thread_modify_sender_add_u(
l4_umword_t match_mask,
985 m->
mr[w] = match_mask;
987 m->
mr[w+2] = del_bits;
988 m->
mr[w+3] = add_bits;
1005 return l4_thread_modify_sender_start_u(
l4_utcb());
1015 return l4_thread_modify_sender_add_u(match_mask, match,
1016 del_bits, add_bits, tag,
l4_utcb());
1022 return l4_thread_modify_sender_commit_u(thread, tag,
l4_utcb());
Identify a message item as map item.
Encapsulation of the message-register block in the UTCB.
Index for task flex-page for bind.
Total number of message register (MRs) available.
l4_msgtag_t l4_thread_ex_regs(l4_cap_idx_t thread, l4_addr_t ip, l4_addr_t sp, l4_umword_t flags) L4_NOTHROW
Exchange basic thread registers.
unsigned l4_utcb_mr64_idx(unsigned idx) L4_NOTHROW
Get index into 64bit message registers alias from native-sized index.
L4_thread_ex_regs_flags
Flags for the thread ex-regs operation.
l4_msgtag_t l4_thread_vcpu_control_ext_u(l4_cap_idx_t thread, l4_addr_t ext_vcpu_state, l4_utcb_t *utcb) L4_NOTHROW
Enable or disable the extended vCPU feature for the thread.
Invalid capability selector.
l4_msgtag_t l4_thread_ex_regs_ret_u(l4_cap_idx_t thread, l4_addr_t *ip, l4_addr_t *sp, l4_umword_t *flags, l4_utcb_t *utcb) L4_NOTHROW
Exchange basic thread registers and return previous values.
unsigned l4_msgtag_has_error(l4_msgtag_t t) L4_NOTHROW
Test for error indicator flag.
l4_msgtag_t l4_thread_vcpu_resume_commit(l4_cap_idx_t thread, l4_msgtag_t tag) L4_NOTHROW
Commit vCPU resume.
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
Common L4 ABI Data Types.
Read-write-execute flex page.
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).
l4_msgtag_t l4_thread_modify_sender_start(void) L4_NOTHROW
Start a thread sender modification sequence.
Index for feature values.
void l4_thread_control_ux_host_syscall(int on) L4_NOTHROW
Enable pass through of native host (Linux) system calls.
unsigned long l4_cap_idx_t
L4 Capability selector Type.
Exchange registers operation.
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
#define L4_IPC_NEVER
never timeout
l4_uint64_t mr64[L4_UTCB_GENERIC_DATA_SIZE/(sizeof(l4_uint64_t)/sizeof(l4_umword_t))]
Message registers 64bit alias.
l4_msgtag_t l4_thread_modify_sender_commit(l4_cap_idx_t thread, l4_msgtag_t tag) L4_NOTHROW
Apply (commit) a sender modification sequence.
long l4_msgtag_label(l4_msgtag_t t) L4_NOTHROW
Get the protocol of tag.
Protocol for messages to a thread object.
l4_msgtag_t l4_thread_switch(l4_cap_idx_t to_thread) L4_NOTHROW
Switch to another thread (and donate the remaining time slice).
Cancel ongoing IPC in the thread.
L4_thread_control_mr_indices
Indices for the values in the message register for thread control.
Alien state of the thread is set.
l4_msgtag_t l4_thread_vcpu_control_ext(l4_cap_idx_t thread, l4_addr_t ext_vcpu_state) L4_NOTHROW
Enable or disable the extended vCPU feature for the thread.
L4_thread_control_flags
Flags for the thread control operation.
l4_msgtag_t l4_thread_yield(void) L4_NOTHROW
Yield current time slice.
Index for exception handler.
unsigned long l4_umword_t
Unsigned machine word.
void l4_thread_control_alien(int on) L4_NOTHROW
Enable alien mode.
l4_uint64_t l4_kernel_clock_t
Kernel clock type.
The exception handler of the thread will be given.
l4_msgtag_t l4_thread_vcpu_control_u(l4_cap_idx_t thread, l4_addr_t vcpu_state, l4_utcb_t *utcb) L4_NOTHROW
Enable or disable the vCPU feature for the thread.
unsigned l4_msgtag_words(l4_msgtag_t t) L4_NOTHROW
Get the number of untyped words.
l4_umword_t raw
Raw value.
void l4_thread_control_bind(l4_utcb_t *thread_utcb, l4_cap_idx_t task) L4_NOTHROW
Bind the thread to a task.
l4_msgtag_t l4_thread_ex_regs_u(l4_cap_idx_t thread, l4_addr_t ip, l4_addr_t sp, l4_umword_t flags, l4_utcb_t *utcb) L4_NOTHROW
Exchange basic thread registers.
Index for UTCB address for bind.
l4_msgtag_t l4_thread_control_commit(l4_cap_idx_t thread) L4_NOTHROW
Commit the thread control parameters.
l4_umword_t l4_map_obj_control(l4_umword_t spot, unsigned grant) L4_NOTHROW
Create the first word for a map item for the object space.
Register an IPC-gate deletion IRQ.
l4_msgtag_t l4_thread_stats_time(l4_cap_idx_t thread, l4_kernel_clock_t *us) L4_NOTHROW
Get consumed time of thread in µs.
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
int l4_thread_modify_sender_add(l4_umword_t match_mask, l4_umword_t match, l4_umword_t del_bits, l4_umword_t add_bits, l4_msgtag_t *tag) L4_NOTHROW
Add a modification pattern to a sender modification sequence.
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
l4_msgtag_t l4_thread_ex_regs_ret(l4_cap_idx_t thread, l4_addr_t *ip, l4_addr_t *sp, l4_umword_t *flags) L4_NOTHROW
Exchange basic thread registers and return previous values.
L4_thread_ops
Operations on thread objects.
l4_msgtag_t l4_thread_vcpu_control(l4_cap_idx_t thread, l4_addr_t vcpu_state) L4_NOTHROW
Enable or disable the vCPU feature for the thread.
Trigger artificial exception in thread.
l4_msgtag_t l4_thread_vcpu_resume_start(void) L4_NOTHROW
vCPU return from event handler.
l4_msgtag_t l4_ipc_receive(l4_cap_idx_t object, l4_utcb_t *utcb, l4_timeout_t timeout) L4_NOTHROW
Wait for a message from a specific source.
The task to bind the thread to will be given.
Read, interface specific 'W', and 'S' rights for capability flex-pages.
Message tag data structure.
unsigned long l4_addr_t
Address type.
void l4_thread_control_exc_handler(l4_cap_idx_t exc_handler) L4_NOTHROW
Set the exception handler.
Enable / disable VCPU feature.
Fiasco-UX only: pass-through of host system calls is set.
Modify all senders IDs that match the given pattern.
l4_fpage_t l4_obj_fpage(l4_cap_idx_t obj, unsigned int order, unsigned char rights) L4_NOTHROW
Create a kernel-object flex page.
l4_msgtag_t l4_thread_register_del_irq(l4_cap_idx_t thread, l4_cap_idx_t irq) L4_NOTHROW
Register an IRQ that will trigger upon deletion events.
void l4_thread_control_start(void) L4_NOTHROW
Start a thread control API sequence.
void l4_thread_control_pager(l4_cap_idx_t pager) L4_NOTHROW
Set the pager.
#define L4_IPC_BOTH_TIMEOUT_0
0 receive and send timeout
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.