~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to linux-user/x86_64/syscall.h

  • Committer: ths
  • Date: 2007-06-17 15:32:30 UTC
  • Revision ID: git-v1:ffb04fcf089865952592f1f8855c2848d4514a89
Allow relative paths for the interpreter prefix in linux-user emulation.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2984 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define __USER_DS       (0x2B)
3
3
 
4
4
struct target_pt_regs {
5
 
        abi_ulong r15;
6
 
        abi_ulong r14;
7
 
        abi_ulong r13;
8
 
        abi_ulong r12;
9
 
        abi_ulong rbp;
10
 
        abi_ulong rbx;
 
5
        target_ulong r15;
 
6
        target_ulong r14;
 
7
        target_ulong r13;
 
8
        target_ulong r12;
 
9
        target_ulong rbp;
 
10
        target_ulong rbx;
11
11
/* arguments: non interrupts/non tracing syscalls only save upto here*/
12
 
        abi_ulong r11;
13
 
        abi_ulong r10;
14
 
        abi_ulong r9;
15
 
        abi_ulong r8;
16
 
        abi_ulong rax;
17
 
        abi_ulong rcx;
18
 
        abi_ulong rdx;
19
 
        abi_ulong rsi;
20
 
        abi_ulong rdi;
21
 
        abi_ulong orig_rax;
 
12
        target_ulong r11;
 
13
        target_ulong r10;
 
14
        target_ulong r9;
 
15
        target_ulong r8;
 
16
        target_ulong rax;
 
17
        target_ulong rcx;
 
18
        target_ulong rdx;
 
19
        target_ulong rsi;
 
20
        target_ulong rdi;
 
21
        target_ulong orig_rax;
22
22
/* end of arguments */
23
23
/* cpu exception frame or undefined */
24
 
        abi_ulong rip;
25
 
        abi_ulong cs;
26
 
        abi_ulong eflags;
27
 
        abi_ulong rsp;
28
 
        abi_ulong ss;
 
24
        target_ulong rip;
 
25
        target_ulong cs;
 
26
        target_ulong eflags;
 
27
        target_ulong rsp;
 
28
        target_ulong ss;
29
29
/* top of stack page */
30
30
};
31
31
 
34
34
/* The size of each LDT entry. */
35
35
#define TARGET_LDT_ENTRY_SIZE   8
36
36
 
37
 
#define TARGET_GDT_ENTRIES 16
38
37
#define TARGET_GDT_ENTRY_TLS_ENTRIES 3
39
38
#define TARGET_GDT_ENTRY_TLS_MIN 12
40
39
#define TARGET_GDT_ENTRY_TLS_MAX 14
42
41
#if 0 // Redefine this
43
42
struct target_modify_ldt_ldt_s {
44
43
        unsigned int  entry_number;
45
 
        abi_ulong     base_addr;
 
44
        target_ulong  base_addr;
46
45
        unsigned int  limit;
47
46
        unsigned int  seg_32bit:1;
48
47
        unsigned int  contents:2;
55
54
#else
56
55
struct target_modify_ldt_ldt_s {
57
56
        unsigned int  entry_number;
58
 
        abi_ulong     base_addr;
 
57
        target_ulong  base_addr;
59
58
        unsigned int  limit;
60
59
        unsigned int flags;
61
60
};
72
71
        unsigned short          __pad1;
73
72
        unsigned short          seq;
74
73
        unsigned short          __pad2;
75
 
        abi_ulong               __unused1;
76
 
        abi_ulong               __unused2;
 
74
        target_ulong            __unused1;
 
75
        target_ulong            __unused2;
77
76
};
78
77
 
79
78
struct target_msqid64_ds {
81
80
        unsigned int msg_stime; /* last msgsnd time */
82
81
        unsigned int msg_rtime; /* last msgrcv time */
83
82
        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 */
 
83
        target_ulong  msg_cbytes;       /* current number of bytes on queue */
 
84
        target_ulong  msg_qnum; /* number of messages in queue */
 
85
        target_ulong  msg_qbytes;       /* max number of bytes on queue */
87
86
        unsigned int msg_lspid; /* pid of last msgsnd */
88
87
        unsigned int msg_lrpid; /* last receive pid */
89
 
        abi_ulong  __unused4;
90
 
        abi_ulong  __unused5;
 
88
        target_ulong  __unused4;
 
89
        target_ulong  __unused5;
91
90
};
92
91
 
93
92
#define UNAME_MACHINE "x86_64"
94
 
 
95
 
#define TARGET_ARCH_SET_GS 0x1001
96
 
#define TARGET_ARCH_SET_FS 0x1002
97
 
#define TARGET_ARCH_GET_FS 0x1003
98
 
#define TARGET_ARCH_GET_GS 0x1004