MIPS: Indicate FP mode in sigcontext sc_used_math
[deliverable/linux.git] / arch / mips / include / uapi / asm / sigcontext.h
CommitLineData
61730c53
DH
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 */
9#ifndef _UAPI_ASM_SIGCONTEXT_H
10#define _UAPI_ASM_SIGCONTEXT_H
11
12#include <linux/types.h>
13#include <asm/sgidefs.h>
14
0d071fa3
PB
15/* scalar FP context was used */
16#define USED_FP (1 << 0)
17
18/* the value of Status.FR when context was saved */
19#define USED_FR1 (1 << 1)
20
21/* FR=1, but with odd singles in bits 63:32 of preceding even double */
22#define USED_HYBRID_FPRS (1 << 2)
23
61730c53
DH
24#if _MIPS_SIM == _MIPS_SIM_ABI32
25
26/*
27 * Keep this struct definition in sync with the sigcontext fragment
5f7e6310 28 * in arch/mips/kernel/asm-offsets.c
61730c53
DH
29 */
30struct sigcontext {
31 unsigned int sc_regmask; /* Unused */
32 unsigned int sc_status; /* Unused */
33 unsigned long long sc_pc;
34 unsigned long long sc_regs[32];
35 unsigned long long sc_fpregs[32];
36 unsigned int sc_acx; /* Was sc_ownedfp */
37 unsigned int sc_fpc_csr;
38 unsigned int sc_fpc_eir; /* Unused */
39 unsigned int sc_used_math;
40 unsigned int sc_dsp; /* dsp status, was sc_ssflags */
41 unsigned long long sc_mdhi;
42 unsigned long long sc_mdlo;
43 unsigned long sc_hi1; /* Was sc_cause */
44 unsigned long sc_lo1; /* Was sc_badvaddr */
45 unsigned long sc_hi2; /* Was sc_sigset[4] */
46 unsigned long sc_lo2;
47 unsigned long sc_hi3;
48 unsigned long sc_lo3;
49};
50
51#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
52
53#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
54
55#include <linux/posix_types.h>
56/*
57 * Keep this struct definition in sync with the sigcontext fragment
5f7e6310 58 * in arch/mips/kernel/asm-offsets.c
61730c53
DH
59 *
60 * Warning: this structure illdefined with sc_badvaddr being just an unsigned
61 * int so it was changed to unsigned long in 2.6.0-test1. This may break
62 * binary compatibility - no prisoners.
63 * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
64 * entries, add sc_dsp and sc_reserved for padding. No prisoners.
65 */
66struct sigcontext {
67 __u64 sc_regs[32];
68 __u64 sc_fpregs[32];
69 __u64 sc_mdhi;
70 __u64 sc_hi1;
71 __u64 sc_hi2;
72 __u64 sc_hi3;
73 __u64 sc_mdlo;
74 __u64 sc_lo1;
75 __u64 sc_lo2;
76 __u64 sc_lo3;
77 __u64 sc_pc;
78 __u32 sc_fpc_csr;
79 __u32 sc_used_math;
80 __u32 sc_dsp;
81 __u32 sc_reserved;
82};
83
84
85#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
86
87#endif /* _UAPI_ASM_SIGCONTEXT_H */
This page took 0.154181 seconds and 5 git commands to generate.