L4Re - L4 Runtime Environment
segment.h File Reference

l4f specific fs/gs manipulation More...

#include <l4/sys/compiler.h>
+ Include dependency graph for segment.h:

Go to the source code of this file.

Functions

long fiasco_amd64_set_fs (l4_cap_idx_t thread, l4_umword_t base, l4_utcb_t *utcb)
 Set the FS register. More...
 
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. More...
 
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. More...
 

Detailed Description

l4f specific fs/gs manipulation

Definition in file segment.h.

Function Documentation

◆ fiasco_amd64_set_fs()

long fiasco_amd64_set_fs ( l4_cap_idx_t  thread,
l4_umword_t  base,
l4_utcb_t utcb 
)
inline

Set the FS register.

Parameters
threadThread to get info from.
baseBase address.
utcbUTCB of the caller.
Returns
System call error

Definition at line 35 of file segment.h.

◆ fiasco_amd64_set_segment_base()

long fiasco_amd64_set_segment_base ( l4_cap_idx_t  thread,
enum L4_sys_segment  segr,
l4_umword_t  base,
l4_utcb_t utcb 
)
inline

Set the FS register.

Parameters
threadThread to get info from.
segrSegment register to set (one of L4_sys_segment).
baseBase address.
utcbUTCB of the caller.
Returns
System call error

Definition at line 43 of file segment.h.