2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

syscalls: Add sys_set/get_thread_area helpers

They are actually banned in kernel for now, but
we might end up needing them, so better to have
them in-place.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2011-11-07 14:47:04 +04:00
parent cb7a9a524d
commit d6e7afe3d8
3 changed files with 28 additions and 0 deletions

View File

@@ -56,6 +56,19 @@ typedef signed char s8;
#ifdef CONFIG_X86_64
typedef struct {
unsigned int entry_number;
unsigned int base_addr;
unsigned int limit;
unsigned int seg_32bit:1;
unsigned int contents:2;
unsigned int read_exec_only:1;
unsigned int limit_in_pages:1;
unsigned int seg_not_present:1;
unsigned int useable:1;
unsigned int lm:1;
} user_desc_t;
typedef struct {
unsigned long r15;
unsigned long r14;