/* * ldt.h * * Definitions of structures used with the modify_ldt system call. */#ifndef _LINUX_LDT_H#define _LINUX_LDT_H/* Maximum number of LDT entries supported. */#define LDT_ENTRIES 8192/* The size of each LDT entry. */#define LDT_ENTRY_SIZE 8#ifndef __ASSEMBLY__structuser_desc{unsignedintentry_number;unsignedlongbase_addr;unsignedintlimit;unsignedintseg_32bit:1;unsignedintcontents:2;unsignedintread_exec_only:1;unsignedintlimit_in_pages:1;unsignedintseg_not_present:1;unsignedintuseable:1;};#define MODIFY_LDT_CONTENTS_DATA 0#define MODIFY_LDT_CONTENTS_STACK 1#define MODIFY_LDT_CONTENTS_CODE 2#endif /* !__ASSEMBLY__ */#endif