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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user