Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * This file is subject to the terms and conditions of the GNU General Public
0004  * License.  See the file "COPYING" in the main directory of this archive
0005  * for more details.
0006  *
0007  * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
0008  * Copyright (C) 1999 Silicon Graphics, Inc.
0009  */
0010 #ifndef _UAPI_ASM_SIGCONTEXT_H
0011 #define _UAPI_ASM_SIGCONTEXT_H
0012 
0013 #include <linux/types.h>
0014 #include <asm/sgidefs.h>
0015 
0016 /* scalar FP context was used */
0017 #define USED_FP         (1 << 0)
0018 
0019 /* the value of Status.FR when context was saved */
0020 #define USED_FR1        (1 << 1)
0021 
0022 /* FR=1, but with odd singles in bits 63:32 of preceding even double */
0023 #define USED_HYBRID_FPRS    (1 << 2)
0024 
0025 /* extended context was used, see struct extcontext for details */
0026 #define USED_EXTCONTEXT     (1 << 3)
0027 
0028 #if _MIPS_SIM == _MIPS_SIM_ABI32
0029 
0030 /*
0031  * Keep this struct definition in sync with the sigcontext fragment
0032  * in arch/mips/kernel/asm-offsets.c
0033  */
0034 struct sigcontext {
0035     unsigned int        sc_regmask; /* Unused */
0036     unsigned int        sc_status;  /* Unused */
0037     unsigned long long  sc_pc;
0038     unsigned long long  sc_regs[32];
0039     unsigned long long  sc_fpregs[32];
0040     unsigned int        sc_acx;     /* Was sc_ownedfp */
0041     unsigned int        sc_fpc_csr;
0042     unsigned int        sc_fpc_eir; /* Unused */
0043     unsigned int        sc_used_math;
0044     unsigned int        sc_dsp;     /* dsp status, was sc_ssflags */
0045     unsigned long long  sc_mdhi;
0046     unsigned long long  sc_mdlo;
0047     unsigned long       sc_hi1;     /* Was sc_cause */
0048     unsigned long       sc_lo1;     /* Was sc_badvaddr */
0049     unsigned long       sc_hi2;     /* Was sc_sigset[4] */
0050     unsigned long       sc_lo2;
0051     unsigned long       sc_hi3;
0052     unsigned long       sc_lo3;
0053 };
0054 
0055 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
0056 
0057 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
0058 
0059 #include <linux/posix_types.h>
0060 /*
0061  * Keep this struct definition in sync with the sigcontext fragment
0062  * in arch/mips/kernel/asm-offsets.c
0063  *
0064  * Warning: this structure illdefined with sc_badvaddr being just an unsigned
0065  * int so it was changed to unsigned long in 2.6.0-test1.  This may break
0066  * binary compatibility - no prisoners.
0067  * DSP ASE in 2.6.12-rc4.  Turn sc_mdhi and sc_mdlo into an array of four
0068  * entries, add sc_dsp and sc_reserved for padding.  No prisoners.
0069  */
0070 struct sigcontext {
0071     __u64   sc_regs[32];
0072     __u64   sc_fpregs[32];
0073     __u64   sc_mdhi;
0074     __u64   sc_hi1;
0075     __u64   sc_hi2;
0076     __u64   sc_hi3;
0077     __u64   sc_mdlo;
0078     __u64   sc_lo1;
0079     __u64   sc_lo2;
0080     __u64   sc_lo3;
0081     __u64   sc_pc;
0082     __u32   sc_fpc_csr;
0083     __u32   sc_used_math;
0084     __u32   sc_dsp;
0085     __u32   sc_reserved;
0086 };
0087 
0088 
0089 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
0090 
0091 #endif /* _UAPI_ASM_SIGCONTEXT_H */