kernel: make dump_core accessible elsewhere
authorAlan Cox <alan@linux.intel.com>
Sun, 20 Jan 2019 23:29:53 +0000 (23:29 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 20 Jan 2019 23:29:53 +0000 (23:29 +0000)
We will need this for the synchronous trap handlers

Kernel/include/kernel.h
Kernel/process.c

index e7b659f..f9de24a 100644 (file)
@@ -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
index 2f62c75..c6e12c0 100644 (file)
@@ -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 ||