From e17c224968c81a4c7986a75a9ca0a77c6773aebe Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 20 Jan 2019 23:29:53 +0000 Subject: [PATCH] kernel: make dump_core accessible elsewhere We will need this for the synchronous trap handlers --- Kernel/include/kernel.h | 3 +++ Kernel/process.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index e7b659f8..f9de24af 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -971,6 +971,9 @@ extern void panic(char *deathcry); extern void exec_or_die(void); #define need_reschedule() (nready != 1 && runticks >= udata.u_ptab->p_priority) +#ifdef CONFIG_LEVEL_2 +extern uint8_t dump_core(uint8_t sig); +#endif /* select.c */ #ifdef CONFIG_LEVEL_2 diff --git a/Kernel/process.c b/Kernel/process.c index 2f62c75e..c6e12c0b 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -548,7 +548,7 @@ void sgrpsig(uint16_t pgrp, uint8_t sig) } #ifdef CONFIG_LEVEL_2 -static uint8_t dump_core(uint8_t sig) +uint8_t dump_core(uint8_t sig) { if (!(udata.u_flags & U_FLAG_NOCORE) && ((sig == SIGQUIT || sig == SIGILL || sig == SIGTRAP || sig == SIGABRT || sig == SIGBUS || sig == SIGFPE || -- 2.34.1