/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 1997, 1999 by Ralf Baechle * Copyright (C) 1999 Silicon Graphics, Inc.
*/ #ifndef _UAPI_ASM_SIGCONTEXT_H #define _UAPI_ASM_SIGCONTEXT_H
#include <linux/types.h> #include <asm/sgidefs.h>
/* scalar FP context was used */ #define USED_FP (1 << 0)
/* the value of Status.FR when context was saved */ #define USED_FR1 (1 << 1)
/* FR=1, but with odd singles in bits 63:32 of preceding even double */ #define USED_HYBRID_FPRS (1 << 2)
/* extended context was used, see struct extcontext for details */ #define USED_EXTCONTEXT (1 << 3)
#if _MIPS_SIM == _MIPS_SIM_ABI32
/* * Keep this struct definition in sync with the sigcontext fragment * in arch/mips/kernel/asm-offsets.c
*/ struct sigcontext { unsignedint sc_regmask; /* Unused */ unsignedint sc_status; /* Unused */ unsignedlonglong sc_pc; unsignedlonglong sc_regs[32]; unsignedlonglong sc_fpregs[32]; unsignedint sc_acx; /* Was sc_ownedfp */ unsignedint sc_fpc_csr; unsignedint sc_fpc_eir; /* Unused */ unsignedint sc_used_math; unsignedint sc_dsp; /* dsp status, was sc_ssflags */ unsignedlonglong sc_mdhi; unsignedlonglong sc_mdlo; unsignedlong sc_hi1; /* Was sc_cause */ unsignedlong sc_lo1; /* Was sc_badvaddr */ unsignedlong sc_hi2; /* Was sc_sigset[4] */ unsignedlong sc_lo2; unsignedlong sc_hi3; unsignedlong sc_lo3;
};
/* * Keep this struct definition in sync with the sigcontext fragment * in arch/mips/kernel/asm-offsets.c * * Warning: this structure illdefined with sc_badvaddr being just an unsigned * int so it was changed to unsigned long in 2.6.0-test1. This may break * binary compatibility - no prisoners. * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four * entries, add sc_dsp and sc_reserved for padding. No prisoners.
*/ struct sigcontext {
__u64 sc_regs[32];
__u64 sc_fpregs[32];
__u64 sc_mdhi;
__u64 sc_hi1;
__u64 sc_hi2;
__u64 sc_hi3;
__u64 sc_mdlo;
__u64 sc_lo1;
__u64 sc_lo2;
__u64 sc_lo3;
__u64 sc_pc;
__u32 sc_fpc_csr;
__u32 sc_used_math;
__u32 sc_dsp;
__u32 sc_reserved;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.