1 #ifndef TARGET_SYSCALL_H
2 #define TARGET_SYSCALL_H
4 #define UNAME_MACHINE "nios2"
5 #define UNAME_MINIMUM_RELEASE "3.19.0"
7 struct target_pt_regs
{
8 unsigned long r8
; /* r8-r15 Caller-saved GP registers */
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 */
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
;
33 #define TARGET_MINSIGSTKSZ 2048
34 #define TARGET_MLOCKALL_MCL_CURRENT 1
35 #define TARGET_MLOCKALL_MCL_FUTURE 2
37 #endif /* TARGET_SYSCALL_H */