aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil
diff options
context:
space:
mode:
Diffstat (limited to 'os/nil')
-rw-r--r--os/nil/include/nil.h4
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;