1 #define __USER_CS (0x33)
2 #define __USER_DS (0x2B)
4 struct target_pt_regs
{
11 /* arguments: non interrupts/non tracing syscalls only save upto here*/
22 /* end of arguments */
23 /* cpu exception frame or undefined */
29 /* top of stack page */
32 /* Maximum number of LDT entries supported. */
33 #define TARGET_LDT_ENTRIES 8192
34 /* The size of each LDT entry. */
35 #define TARGET_LDT_ENTRY_SIZE 8
37 #define TARGET_GDT_ENTRIES 16
38 #define TARGET_GDT_ENTRY_TLS_ENTRIES 3
39 #define TARGET_GDT_ENTRY_TLS_MIN 12
40 #define TARGET_GDT_ENTRY_TLS_MAX 14
42 #if 0 // Redefine this
43 struct target_modify_ldt_ldt_s
{
44 unsigned int entry_number
;
47 unsigned int seg_32bit
:1;
48 unsigned int contents
:2;
49 unsigned int read_exec_only
:1;
50 unsigned int limit_in_pages
:1;
51 unsigned int seg_not_present
:1;
52 unsigned int useable
:1;
56 struct target_modify_ldt_ldt_s
{
57 unsigned int entry_number
;
64 struct target_ipc64_perm
72 unsigned short __pad1
;
74 unsigned short __pad2
;
79 struct target_msqid64_ds
{
80 struct target_ipc64_perm msg_perm
;
81 unsigned int msg_stime
; /* last msgsnd time */
82 unsigned int msg_rtime
; /* last msgrcv time */
83 unsigned int msg_ctime
; /* last change time */
84 abi_ulong msg_cbytes
; /* current number of bytes on queue */
85 abi_ulong msg_qnum
; /* number of messages in queue */
86 abi_ulong msg_qbytes
; /* max number of bytes on queue */
87 unsigned int msg_lspid
; /* pid of last msgsnd */
88 unsigned int msg_lrpid
; /* last receive pid */
93 /* FreeBSD sysarch(2) */
94 #define TARGET_FREEBSD_I386_GET_LDT 0
95 #define TARGET_FREEBSD_I386_SET_LDT 1
97 #define TARGET_FREEBSD_I386_GET_IOPERM 3
98 #define TARGET_FREEBSD_I386_SET_IOPERM 4
100 #define TARGET_FREEBSD_I386_GET_FSBASE 7
101 #define TARGET_FREEBSD_I386_SET_FSBASE 8
102 #define TARGET_FREEBSD_I386_GET_GSBASE 9
103 #define TARGET_FREEBSD_I386_SET_GSBASE 10
105 #define TARGET_FREEBSD_AMD64_GET_FSBASE 128
106 #define TARGET_FREEBSD_AMD64_SET_FSBASE 129
107 #define TARGET_FREEBSD_AMD64_GET_GSBASE 130
108 #define TARGET_FREEBSD_AMD64_SET_GSBASE 131
111 #define UNAME_MACHINE "x86_64"
113 #define TARGET_ARCH_SET_GS 0x1001
114 #define TARGET_ARCH_SET_FS 0x1002
115 #define TARGET_ARCH_GET_FS 0x1003
116 #define TARGET_ARCH_GET_GS 0x1004