From 2c41c0d442aa3cea412fba318d4fe0a7cfd276d6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 19 Oct 2009 18:33:53 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1241 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chdebug.c | 3 ++- os/kernel/templates/chconf.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'os/kernel') diff --git a/os/kernel/src/chdebug.c b/os/kernel/src/chdebug.c index f5e6bef7a..3049e03e7 100644 --- a/os/kernel/src/chdebug.c +++ b/os/kernel/src/chdebug.c @@ -62,7 +62,8 @@ void chDbgTrace(Thread *otp, Thread *ntp) { /** * @brief Pointer to the panic message. * @details This pointer is meant to be accessed through the debugger, it is - * written once and then the system is halted. + * written once and then the system is halted. This variable can be + * set to @p NULL if the halt is caused by a stack overflow. */ char *panic_msg; diff --git a/os/kernel/templates/chconf.h b/os/kernel/templates/chconf.h index 31c3c7a50..41dddd5d4 100644 --- a/os/kernel/templates/chconf.h +++ b/os/kernel/templates/chconf.h @@ -377,6 +377,8 @@ * @note The default is @p FALSE. * @note The stack check is performed in a architecture/port dependent way. It * may not be implemented or some ports. + * @note The default failure mode is to halt the system with the global + * @p panic_msg variable set to @p NULL. */ #if !defined(CH_DBG_ENABLE_STACK_CHECK) || defined(__DOXYGEN__) #define CH_DBG_ENABLE_STACK_CHECK FALSE -- cgit v1.2.3