Path: blob/master/arch/mips/include/uapi/asm/sigcontext.h
26495 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* This file is subject to the terms and conditions of the GNU General Public3* License. See the file "COPYING" in the main directory of this archive4* for more details.5*6* Copyright (C) 1996, 1997, 1999 by Ralf Baechle7* Copyright (C) 1999 Silicon Graphics, Inc.8*/9#ifndef _UAPI_ASM_SIGCONTEXT_H10#define _UAPI_ASM_SIGCONTEXT_H1112#include <linux/types.h>13#include <asm/sgidefs.h>1415/* scalar FP context was used */16#define USED_FP (1 << 0)1718/* the value of Status.FR when context was saved */19#define USED_FR1 (1 << 1)2021/* FR=1, but with odd singles in bits 63:32 of preceding even double */22#define USED_HYBRID_FPRS (1 << 2)2324/* extended context was used, see struct extcontext for details */25#define USED_EXTCONTEXT (1 << 3)2627#if _MIPS_SIM == _MIPS_SIM_ABI322829/*30* Keep this struct definition in sync with the sigcontext fragment31* in arch/mips/kernel/asm-offsets.c32*/33struct sigcontext {34unsigned int sc_regmask; /* Unused */35unsigned int sc_status; /* Unused */36unsigned long long sc_pc;37unsigned long long sc_regs[32];38unsigned long long sc_fpregs[32];39unsigned int sc_acx; /* Was sc_ownedfp */40unsigned int sc_fpc_csr;41unsigned int sc_fpc_eir; /* Unused */42unsigned int sc_used_math;43unsigned int sc_dsp; /* dsp status, was sc_ssflags */44unsigned long long sc_mdhi;45unsigned long long sc_mdlo;46unsigned long sc_hi1; /* Was sc_cause */47unsigned long sc_lo1; /* Was sc_badvaddr */48unsigned long sc_hi2; /* Was sc_sigset[4] */49unsigned long sc_lo2;50unsigned long sc_hi3;51unsigned long sc_lo3;52};5354#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */5556#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI325758/*59* Keep this struct definition in sync with the sigcontext fragment60* in arch/mips/kernel/asm-offsets.c61*62* Warning: this structure illdefined with sc_badvaddr being just an unsigned63* int so it was changed to unsigned long in 2.6.0-test1. This may break64* binary compatibility - no prisoners.65* DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four66* entries, add sc_dsp and sc_reserved for padding. No prisoners.67*/68struct sigcontext {69__u64 sc_regs[32];70__u64 sc_fpregs[32];71__u64 sc_mdhi;72__u64 sc_hi1;73__u64 sc_hi2;74__u64 sc_hi3;75__u64 sc_mdlo;76__u64 sc_lo1;77__u64 sc_lo2;78__u64 sc_lo3;79__u64 sc_pc;80__u32 sc_fpc_csr;81__u32 sc_used_math;82__u32 sc_dsp;83__u32 sc_reserved;84};858687#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */8889#endif /* _UAPI_ASM_SIGCONTEXT_H */909192