1 #ifndef ALPHA_TARGET_SYSCALL_H
2 #define ALPHA_TARGET_SYSCALL_H
3 
4 /* default linux values for the selectors */
5 #define __USER_DS	(1)
6 
7 struct target_pt_regs {
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;
28 /* JRP - These are the values provided to a0-a2 by PALcode */
29 	abi_ulong trap_a0;
30 	abi_ulong trap_a1;
31 	abi_ulong trap_a2;
32 /* These are saved by PAL-code: */
33 	abi_ulong ps;
34 	abi_ulong pc;
35 	abi_ulong gp;
36 	abi_ulong r16;
37 	abi_ulong r17;
38 	abi_ulong r18;
39 /* Those is needed by qemu to temporary store the user stack pointer */
40         abi_ulong usp;
41         abi_ulong unique;
42 };
43 
44 #define UNAME_MACHINE "alpha"
45 #define UNAME_MINIMUM_RELEASE "2.6.32"
46 
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
66 #define TARGET_MINSIGSTKSZ              4096
67 #define TARGET_MCL_CURRENT     0x2000
68 #define TARGET_MCL_FUTURE      0x4000
69 #define TARGET_MCL_ONFAULT     0x8000
70 
71 #endif /* ALPHA_TARGET_SYSCALL_H */
72