]>
Commit | Line | Data |
---|---|---|
3622634b MA |
1 | #ifndef ALPHA_TARGET_SYSCALL_H |
2 | #define ALPHA_TARGET_SYSCALL_H | |
460c579f | 3 | |
86cc1ce0 JM |
4 | /* default linux values for the selectors */ |
5 | #define __USER_DS (1) | |
6 | ||
7 | struct target_pt_regs { | |
992f48a0 BS |
8 | abi_ulong r0; |
9 | abi_ulong r1; | |
10 | abi_ulong r2; | |
11 | abi_ulong r3; | |
12 | abi_ulong r4; | |
13 | abi_ulong r5; | |
14 | abi_ulong r6; | |
15 | abi_ulong r7; | |
16 | abi_ulong r8; | |
17 | abi_ulong r19; | |
18 | abi_ulong r20; | |
19 | abi_ulong r21; | |
20 | abi_ulong r22; | |
21 | abi_ulong r23; | |
22 | abi_ulong r24; | |
23 | abi_ulong r25; | |
24 | abi_ulong r26; | |
25 | abi_ulong r27; | |
26 | abi_ulong r28; | |
27 | abi_ulong hae; | |
86cc1ce0 | 28 | /* JRP - These are the values provided to a0-a2 by PALcode */ |
992f48a0 BS |
29 | abi_ulong trap_a0; |
30 | abi_ulong trap_a1; | |
31 | abi_ulong trap_a2; | |
86cc1ce0 | 32 | /* These are saved by PAL-code: */ |
992f48a0 BS |
33 | abi_ulong ps; |
34 | abi_ulong pc; | |
35 | abi_ulong gp; | |
36 | abi_ulong r16; | |
37 | abi_ulong r17; | |
38 | abi_ulong r18; | |
86cc1ce0 | 39 | /* Those is needed by qemu to temporary store the user stack pointer */ |
992f48a0 BS |
40 | abi_ulong usp; |
41 | abi_ulong unique; | |
86cc1ce0 JM |
42 | }; |
43 | ||
86cc1ce0 | 44 | #define UNAME_MACHINE "alpha" |
cbc14e6f | 45 | #define UNAME_MINIMUM_RELEASE "2.6.32" |
ba0e276d | 46 | |
ba0e276d RH |
47 | // For sys_osf_getsysinfo |
48 | #define TARGET_GSI_UACPROC 8 | |
49 | #define TARGET_GSI_IEEE_FP_CONTROL 45 | |
50 | #define TARGET_GSI_IEEE_STATE_AT_SIGNAL 46 | |
51 | #define TARGET_GSI_PROC_TYPE 60 | |
52 | #define TARGET_GSI_GET_HWRPB 101 | |
53 | ||
54 | // For sys_ofs_setsysinfo | |
55 | #define TARGET_SSI_NVPAIRS 1 | |
56 | #define TARGET_SSI_IEEE_FP_CONTROL 14 | |
57 | #define TARGET_SSI_IEEE_STATE_AT_SIGNAL 15 | |
58 | #define TARGET_SSI_IEEE_IGNORE_STATE_AT_SIGNAL 16 | |
59 | #define TARGET_SSI_IEEE_RAISE_EXCEPTION 1001 | |
60 | ||
61 | #define TARGET_SSIN_UACPROC 6 | |
62 | ||
63 | #define TARGET_UAC_NOPRINT 1 | |
64 | #define TARGET_UAC_NOFIX 2 | |
65 | #define TARGET_UAC_SIGBUS 4 | |
02e5d7d7 FB |
66 | #define TARGET_MCL_CURRENT 0x2000 |
67 | #define TARGET_MCL_FUTURE 0x4000 | |
68 | #define TARGET_MCL_ONFAULT 0x8000 | |
460c579f | 69 | |
3622634b | 70 | #endif /* ALPHA_TARGET_SYSCALL_H */ |