diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-19 18:33:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-19 18:33:53 +0000 |
commit | 2c41c0d442aa3cea412fba318d4fe0a7cfd276d6 (patch) | |
tree | 8964b845b68492db3d2d6b75ae5c9811b0670a98 /os/kernel | |
parent | 5cdca32dbb561d39ae00c7702cb4f3b176ff3f9b (diff) | |
download | ChibiOS-2c41c0d442aa3cea412fba318d4fe0a7cfd276d6.tar.gz ChibiOS-2c41c0d442aa3cea412fba318d4fe0a7cfd276d6.tar.bz2 ChibiOS-2c41c0d442aa3cea412fba318d4fe0a7cfd276d6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1241 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel')
-rw-r--r-- | os/kernel/src/chdebug.c | 3 | ||||
-rw-r--r-- | os/kernel/templates/chconf.h | 2 |
2 files changed, 4 insertions, 1 deletions
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
|