mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
c7fff9288d
Now that __ARCH_SI_TRAPNO is no longer set by any architecture remove all of the code it enabled from the kernel. On alpha and sparc a more explict approach of using send_sig_fault_trapno or force_sig_fault_trapno in the very limited circumstances where si_trapno was set to a non-zero value. The generic support that is being removed always set si_trapno on all fault signals. With only SIGILL ILL_ILLTRAP on sparc and SIGFPE and SIGTRAP TRAP_UNK on alpla providing si_trapno values asking all senders of fault signals to provide an si_trapno value does not make sense. Making si_trapno an ordinary extension of the fault siginfo layout has enabled the architecture generic implementation of SIGTRAP TRAP_PERF, and enables other faulting signals to grow architecture generic senders as well. v1: https://lkml.kernel.org/r/m18s4zs7nu.fsf_-_@fess.ebiederm.org v2: https://lkml.kernel.org/r/20210505141101.11519-8-ebiederm@xmission.com Link: https://lkml.kernel.org/r/87bl73xx6x.fsf_-_@disp2133 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
31 lines
872 B
C
31 lines
872 B
C
/* 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) 1998, 1999, 2001, 2003 Ralf Baechle
|
|
* Copyright (C) 2000, 2001 Silicon Graphics, Inc.
|
|
*/
|
|
#ifndef _UAPI_ASM_SIGINFO_H
|
|
#define _UAPI_ASM_SIGINFO_H
|
|
|
|
#define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int))
|
|
|
|
#define __ARCH_HAS_SWAPPED_SIGINFO
|
|
|
|
#include <asm-generic/siginfo.h>
|
|
|
|
/*
|
|
* si_code values
|
|
* Again these have been chosen to be IRIX compatible.
|
|
*/
|
|
#undef SI_ASYNCIO
|
|
#undef SI_TIMER
|
|
#undef SI_MESGQ
|
|
#define SI_ASYNCIO -2 /* sent by AIO completion */
|
|
#define SI_TIMER -3 /* sent by timer expiration */
|
|
#define SI_MESGQ -4 /* sent by real time mesq state change */
|
|
|
|
#endif /* _UAPI_ASM_SIGINFO_H */
|