sched: Add SIGFPE, SIGILL and SIGSEGV definition

Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
yintao
2022-08-11 13:25:52 +08:00
committed by Alan Carvalho de Assis
parent 42d0e356c2
commit 739be67744
2 changed files with 46 additions and 4 deletions
+20 -2
View File
@@ -222,11 +222,29 @@
# define SIGTTIN CONFIG_SIG_TTIN
#endif
#ifndef CONFIG_SIG_FPE
# define SIGFPE 16
#else
# define SIGFPE CONFIG_SIG_FPE
#endif
#ifndef CONFIG_SIG_ILL
# define SIGILL 17
#else
# define SIGILL CONFIG_SIG_ILL
#endif
#ifndef CONFIG_SIG_SEGV
# define SIGSEGV 18
#else
# define SIGSEGV CONFIG_SIG_SEGV
#endif
/* The following are non-standard signal definitions */
#ifndef CONFIG_DISABLE_PTHREAD
# ifndef CONFIG_SIG_SIGCONDTIMEDOUT
# define SIGCONDTIMEDOUT 16 /* Used in the implementation of pthread_cond_timedwait */
# define SIGCONDTIMEDOUT 19 /* Used in the implementation of pthread_cond_timedwait */
# else
# define SIGCONDTIMEDOUT CONFIG_SIG_SIGCONDTIMEDOUT
# endif
@@ -236,7 +254,7 @@
#if defined(CONFIG_SCHED_WORKQUEUE) || defined(CONFIG_PAGING)
# ifndef CONFIG_SIG_SIGWORK
# define SIGWORK 17 /* Used to wake up the work queue */
# define SIGWORK 20 /* Used to wake up the work queue */
# else
# define SIGWORK CONFIG_SIG_SIGWORK
# endif
+26 -2
View File
@@ -1403,11 +1403,35 @@ config SIG_TTIN
information about how this interacts with the terminal driver, see Access
to the Controlling Terminal.
config SIG_FPE
int "SIGFPE"
default 16
---help---
The SIGFPE is issued when fatal arithmetic operation errors occur.
It includes not only floating-point operation errors, but also all other
arithmetic errors such as overflow and divisor zero.
config SIG_ILL
int "SIGILL"
default 17
---help---
The SIGILL executed an illegal instruction. It is usually because of an
error in the executable file itself or an attempt to execute a data segment.
This signal may also be generated when the stack overflows.
config SIG_SEGA
int "SIGSEGA"
default 18
---help---
The SIGSEGA is sent when an attempt is made to access memory that is
not allocated to itself, or to write data to a memory address that does
not have write permission, or to illegally use the memory address signal.
comment "Non-standard Signal Numbers"
config SIG_SIGCONDTIMEDOUT
int "SIGCONDTIMEDOUT"
default 16
default 19
depends on !DISABLE_PTHREAD
---help---
This non-standard signal number is used the implementation of
@@ -1415,7 +1439,7 @@ config SIG_SIGCONDTIMEDOUT
config SIG_SIGWORK
int "SIGWORK"
default 17
default 20
depends on SCHED_WORKQUEUE || LIBC_USRWORK
---help---
SIGWORK is a non-standard signal used to wake up various internal