13622634bSMarkus Armbruster #ifndef ALPHA_TARGET_SYSCALL_H 23622634bSMarkus Armbruster #define ALPHA_TARGET_SYSCALL_H 3460c579fSLluís Vilanova 486cc1ce0Sj_mayer /* default linux values for the selectors */ 586cc1ce0Sj_mayer #define __USER_DS (1) 686cc1ce0Sj_mayer 786cc1ce0Sj_mayer struct target_pt_regs { 8992f48a0Sblueswir1 abi_ulong r0; 9992f48a0Sblueswir1 abi_ulong r1; 10992f48a0Sblueswir1 abi_ulong r2; 11992f48a0Sblueswir1 abi_ulong r3; 12992f48a0Sblueswir1 abi_ulong r4; 13992f48a0Sblueswir1 abi_ulong r5; 14992f48a0Sblueswir1 abi_ulong r6; 15992f48a0Sblueswir1 abi_ulong r7; 16992f48a0Sblueswir1 abi_ulong r8; 17992f48a0Sblueswir1 abi_ulong r19; 18992f48a0Sblueswir1 abi_ulong r20; 19992f48a0Sblueswir1 abi_ulong r21; 20992f48a0Sblueswir1 abi_ulong r22; 21992f48a0Sblueswir1 abi_ulong r23; 22992f48a0Sblueswir1 abi_ulong r24; 23992f48a0Sblueswir1 abi_ulong r25; 24992f48a0Sblueswir1 abi_ulong r26; 25992f48a0Sblueswir1 abi_ulong r27; 26992f48a0Sblueswir1 abi_ulong r28; 27992f48a0Sblueswir1 abi_ulong hae; 2886cc1ce0Sj_mayer /* JRP - These are the values provided to a0-a2 by PALcode */ 29992f48a0Sblueswir1 abi_ulong trap_a0; 30992f48a0Sblueswir1 abi_ulong trap_a1; 31992f48a0Sblueswir1 abi_ulong trap_a2; 3286cc1ce0Sj_mayer /* These are saved by PAL-code: */ 33992f48a0Sblueswir1 abi_ulong ps; 34992f48a0Sblueswir1 abi_ulong pc; 35992f48a0Sblueswir1 abi_ulong gp; 36992f48a0Sblueswir1 abi_ulong r16; 37992f48a0Sblueswir1 abi_ulong r17; 38992f48a0Sblueswir1 abi_ulong r18; 3986cc1ce0Sj_mayer /* Those is needed by qemu to temporary store the user stack pointer */ 40992f48a0Sblueswir1 abi_ulong usp; 41992f48a0Sblueswir1 abi_ulong unique; 4286cc1ce0Sj_mayer }; 4386cc1ce0Sj_mayer 4486cc1ce0Sj_mayer #define UNAME_MACHINE "alpha" 45cbc14e6fSRiku Voipio #define UNAME_MINIMUM_RELEASE "2.6.32" 46ba0e276dSRichard Henderson 47ba0e276dSRichard Henderson // For sys_osf_getsysinfo 48ba0e276dSRichard Henderson #define TARGET_GSI_UACPROC 8 49ba0e276dSRichard Henderson #define TARGET_GSI_IEEE_FP_CONTROL 45 50ba0e276dSRichard Henderson #define TARGET_GSI_IEEE_STATE_AT_SIGNAL 46 51ba0e276dSRichard Henderson #define TARGET_GSI_PROC_TYPE 60 52ba0e276dSRichard Henderson #define TARGET_GSI_GET_HWRPB 101 53ba0e276dSRichard Henderson 54ba0e276dSRichard Henderson // For sys_ofs_setsysinfo 55ba0e276dSRichard Henderson #define TARGET_SSI_NVPAIRS 1 56ba0e276dSRichard Henderson #define TARGET_SSI_IEEE_FP_CONTROL 14 57ba0e276dSRichard Henderson #define TARGET_SSI_IEEE_STATE_AT_SIGNAL 15 58ba0e276dSRichard Henderson #define TARGET_SSI_IEEE_IGNORE_STATE_AT_SIGNAL 16 59ba0e276dSRichard Henderson #define TARGET_SSI_IEEE_RAISE_EXCEPTION 1001 60ba0e276dSRichard Henderson 61ba0e276dSRichard Henderson #define TARGET_SSIN_UACPROC 6 62ba0e276dSRichard Henderson 63ba0e276dSRichard Henderson #define TARGET_UAC_NOPRINT 1 64ba0e276dSRichard Henderson #define TARGET_UAC_NOFIX 2 65ba0e276dSRichard Henderson #define TARGET_UAC_SIGBUS 4 66*02e5d7d7SFilip Bozuta #define TARGET_MCL_CURRENT 0x2000 67*02e5d7d7SFilip Bozuta #define TARGET_MCL_FUTURE 0x4000 68*02e5d7d7SFilip Bozuta #define TARGET_MCL_ONFAULT 0x8000 69460c579fSLluís Vilanova 703622634bSMarkus Armbruster #endif /* ALPHA_TARGET_SYSCALL_H */ 71