linux-user: Add support for a group of btrfs ioctls used for snapshots
[qemu.git] / linux-user / nios2 / target_syscall.h
1 #ifndef NIOS2_TARGET_SYSCALL_H
2 #define NIOS2_TARGET_SYSCALL_H
3
4 #define UNAME_MACHINE "nios2"
5 #define UNAME_MINIMUM_RELEASE "3.19.0"
6
7 struct target_pt_regs {
8 unsigned long r8; /* r8-r15 Caller-saved GP registers */
9 unsigned long r9;
10 unsigned long r10;
11 unsigned long r11;
12 unsigned long r12;
13 unsigned long r13;
14 unsigned long r14;
15 unsigned long r15;
16 unsigned long r1; /* Assembler temporary */
17 unsigned long r2; /* Retval LS 32bits */
18 unsigned long r3; /* Retval MS 32bits */
19 unsigned long r4; /* r4-r7 Register arguments */
20 unsigned long r5;
21 unsigned long r6;
22 unsigned long r7;
23 unsigned long orig_r2; /* Copy of r2 ?? */
24 unsigned long ra; /* Return address */
25 unsigned long fp; /* Frame pointer */
26 unsigned long sp; /* Stack pointer */
27 unsigned long gp; /* Global pointer */
28 unsigned long estatus;
29 unsigned long ea; /* Exception return address (pc) */
30 unsigned long orig_r7;
31 };
32
33 #define TARGET_MINSIGSTKSZ 2048
34 #define TARGET_MCL_CURRENT 1
35 #define TARGET_MCL_FUTURE 2
36 #define TARGET_MCL_ONFAULT 4
37
38 #endif /* NIOS2_TARGET_SYSCALL_H */