00001 #define __USER_CS (0x33)
00002 #define __USER_DS (0x2B)
00003
00004 struct target_pt_regs {
00005 abi_ulong r15;
00006 abi_ulong r14;
00007 abi_ulong r13;
00008 abi_ulong r12;
00009 abi_ulong rbp;
00010 abi_ulong rbx;
00011
00012 abi_ulong r11;
00013 abi_ulong r10;
00014 abi_ulong r9;
00015 abi_ulong r8;
00016 abi_ulong rax;
00017 abi_ulong rcx;
00018 abi_ulong rdx;
00019 abi_ulong rsi;
00020 abi_ulong rdi;
00021 abi_ulong orig_rax;
00022
00023
00024 abi_ulong rip;
00025 abi_ulong cs;
00026 abi_ulong eflags;
00027 abi_ulong rsp;
00028 abi_ulong ss;
00029
00030 };
00031
00032
00033 #define TARGET_LDT_ENTRIES 8192
00034
00035 #define TARGET_LDT_ENTRY_SIZE 8
00036
00037 #define TARGET_GDT_ENTRIES 16
00038 #define TARGET_GDT_ENTRY_TLS_ENTRIES 3
00039 #define TARGET_GDT_ENTRY_TLS_MIN 12
00040 #define TARGET_GDT_ENTRY_TLS_MAX 14
00041
00042 #if 0 // Redefine this
00043 struct target_modify_ldt_ldt_s {
00044 unsigned int entry_number;
00045 abi_ulong base_addr;
00046 unsigned int limit;
00047 unsigned int seg_32bit:1;
00048 unsigned int contents:2;
00049 unsigned int read_exec_only:1;
00050 unsigned int limit_in_pages:1;
00051 unsigned int seg_not_present:1;
00052 unsigned int useable:1;
00053 unsigned int lm:1;
00054 };
00055 #else
00056 struct target_modify_ldt_ldt_s {
00057 unsigned int entry_number;
00058 abi_ulong base_addr;
00059 unsigned int limit;
00060 unsigned int flags;
00061 };
00062 #endif
00063
00064 struct target_ipc64_perm
00065 {
00066 int key;
00067 uint32_t uid;
00068 uint32_t gid;
00069 uint32_t cuid;
00070 uint32_t cgid;
00071 unsigned short mode;
00072 unsigned short __pad1;
00073 unsigned short seq;
00074 unsigned short __pad2;
00075 abi_ulong __unused1;
00076 abi_ulong __unused2;
00077 };
00078
00079 struct target_msqid64_ds {
00080 struct target_ipc64_perm msg_perm;
00081 unsigned int msg_stime;
00082 unsigned int msg_rtime;
00083 unsigned int msg_ctime;
00084 abi_ulong msg_cbytes;
00085 abi_ulong msg_qnum;
00086 abi_ulong msg_qbytes;
00087 unsigned int msg_lspid;
00088 unsigned int msg_lrpid;
00089 abi_ulong __unused4;
00090 abi_ulong __unused5;
00091 };
00092
00093 #define UNAME_MACHINE "x86_64"
00094
00095 #define TARGET_ARCH_SET_GS 0x1001
00096 #define TARGET_ARCH_SET_FS 0x1002
00097 #define TARGET_ARCH_GET_FS 0x1003
00098 #define TARGET_ARCH_GET_GS 0x1004