aboutsummaryrefslogtreecommitdiffstats
path: root/arch-x86-64.h
blob: 044b73f95b61ec6defe0b575b8cee446a4b84334 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
struct i386_user_regs_struct
{
	uint32_t ebx;
	uint32_t ecx;
	uint32_t edx;
	uint32_t esi;
	uint32_t edi;
	uint32_t ebp;
	uint32_t eax;
	uint32_t xds;
	uint32_t xes;
	uint32_t xfs;
	uint32_t xgs;
	uint32_t orig_eax;
	uint32_t eip;
	uint32_t xcs;
	uint32_t eflags;
	uint32_t esp;
	uint32_t xss;
};

#define SYSCALL_NUM_REG orig_rax
#define SYSCALL_ARG1_REG rdi
#define SYSCALL_ARG2_REG rsi
#define SYSCALL_ARG3_REG rdx
#define SYSCALL_ARG4_REG r10
#define SYSCALL_ARG5_REG r8
#define SYSCALL_ARG6_REG r9
#define SYSCALL_RET_REG rax