summaryrefslogtreecommitdiff
path: root/supervisor/shared/safe_mode.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-03-08 15:29:14 -0800
committerScott Shawcroft <scott@tannewt.org>2019-03-12 11:18:26 -0700
commit03be42ab847f04a89d207d98fdb28048cfedf72d (patch)
tree918df321648fc6715eee60ddf926d5dc7ee58bfe /supervisor/shared/safe_mode.h
parentef4a74e201e852a32e2e1be73ed9ba85c88fb3f4 (diff)
Enter safe mode when an allocation is attempted on an uninitialized heap.
Diffstat (limited to 'supervisor/shared/safe_mode.h')
-rw-r--r--supervisor/shared/safe_mode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/supervisor/shared/safe_mode.h b/supervisor/shared/safe_mode.h
index eba2668ac..59480b55b 100644
--- a/supervisor/shared/safe_mode.h
+++ b/supervisor/shared/safe_mode.h
@@ -35,7 +35,8 @@ typedef enum {
HEAP_OVERWRITTEN,
MANUAL_SAFE_MODE,
MICROPY_NLR_JUMP_FAIL,
- MICROPY_FATAL_ERROR
+ MICROPY_FATAL_ERROR,
+ GC_ALLOC_OUTSIDE_VM
} safe_mode_t;
safe_mode_t wait_for_safe_mode_reset(void);