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