We will need this for the synchronous trap handlers
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
}
#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 ||