24 #ifndef __L4_SYS__ARCH_X86__SEGMENT_H__ 25 #define __L4_SYS__ARCH_X86__SEGMENT_H__ 28 #error This header file can only be used with a L4API version! 31 #include <l4/sys/ipc.h> 45 unsigned int entry_number_start,
l4_utcb_t *utcb);
62 unsigned int entry_number_start,
l4_utcb_t *utcb);
98 L4_AMD64_SEGMENT_FS = 0,
99 L4_AMD64_SEGMENT_GS = 1
125 unsigned *user_cs,
unsigned *user32_cs,
133 #include <l4/sys/thread.h> 137 unsigned int entry_number_start,
l4_utcb_t *utcb)
142 l4_utcb_mr_u(utcb)->
mr[1] = entry_number_start;
143 __builtin_memcpy(&l4_utcb_mr_u(utcb)->mr[2], ldt,
154 return l4_utcb_mr_u(utcb)->
mr[0];
159 unsigned *user_cs,
unsigned *user32_cs,
174 *user32_cs = m->
mr[2];
Encapsulation of the message-register block in the UTCB.
Total number of message register (MRs) available.
Maximum number of LDT entries that can be written with one call.
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
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).
unsigned long l4_cap_idx_t
L4 Capability selector Type.
long fiasco_gdt_set(l4_cap_idx_t thread, void *desc, unsigned int size, unsigned int entry_number_start, l4_utcb_t *utcb)
Set GDT segment descriptors.
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
#define L4_IPC_NEVER
never timeout
Protocol for messages to a thread object.
long fiasco_ldt_set(l4_cap_idx_t task, void *ldt, unsigned int num_desc, unsigned int entry_number_start, l4_utcb_t *utcb)
Set LDT segments descriptors.
long fiasco_amd64_set_segment_base(l4_cap_idx_t thread, enum L4_sys_segment segr, l4_umword_t base, l4_utcb_t *utcb)
Set the FS register.
Protocol for messages to a task object.
unsigned long l4_umword_t
Unsigned machine word.
long fiasco_amd64_set_fs(l4_cap_idx_t thread, l4_umword_t base, l4_utcb_t *utcb)
Set the FS register.
Common task related definitions.
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
unsigned fiasco_gdt_get_entry_offset(l4_cap_idx_t thread, l4_utcb_t *utcb)
Return the offset of the entry in the GDT.
long fiasco_amd64_segment_info(l4_cap_idx_t thread, unsigned *user_ds, unsigned *user_cs, unsigned *user32_cs, l4_utcb_t *utcb)
Get segment information.
L4_task_ldt_x86_consts
Contants for LDT handling.
#define L4_MWORD_BITS
Size of machine words in bits.