diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-07 08:00:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-07 08:00:46 +0000 |
commit | 07339aeb0e0cb5f6a6f66933df2fd8f21051da92 (patch) | |
tree | 4ad311be231abf3d588394b3bf7981d15e4a106f /os/nil/include | |
parent | 3ff810e5eea0387733022bf5304d4f94265439b0 (diff) | |
download | ChibiOS-07339aeb0e0cb5f6a6f66933df2fd8f21051da92.tar.gz ChibiOS-07339aeb0e0cb5f6a6f66933df2fd8f21051da92.tar.bz2 ChibiOS-07339aeb0e0cb5f6a6f66933df2fd8f21051da92.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7151 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil/include')
-rw-r--r-- | os/nil/include/nil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h index f815b2153..109f99533 100644 --- a/os/nil/include/nil.h +++ b/os/nil/include/nil.h @@ -391,8 +391,10 @@ typedef struct { * @brief Panic message.
* @note This field is only present if some debug options have been
* activated.
+ * @note Accesses to this pointer must never be optimized out so the
+ * field itself is declared volatile.
*/
- const char *dbg_panic_msg;
+ const char * volatile dbg_panic_msg;
#endif
} nil_system_t;
|