summaryrefslogtreecommitdiff
path: root/py/objexcept.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-15 17:33:24 +0000
committerDamien George <damien.p.george@gmail.com>2014-10-15 17:33:24 +0000
commit4859edb95b53313b140318ee8674ec617c8c7566 (patch)
tree3155dac08a1fd61ac023c636506d0671a20f49f1 /py/objexcept.c
parent95908b0f50e26fe2c90687966b60a0cf195f71de (diff)
py: Fix dummy definition of BEGIN/END_ATOMIC_SECTION.
Diffstat (limited to 'py/objexcept.c')
-rw-r--r--py/objexcept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objexcept.c b/py/objexcept.c
index 9b22acd99..a9c0436e2 100644
--- a/py/objexcept.c
+++ b/py/objexcept.c
@@ -88,10 +88,10 @@ mp_obj_t mp_alloc_emergency_exception_buf(mp_obj_t size_in) {
// Update the 2 variables atomically so that an interrupt can't occur
// between the assignments.
- mp_uint_t irq_state = MICROPY_BEGIN_ATOMIC_SECTION();
+ mp_uint_t atomic_state = MICROPY_BEGIN_ATOMIC_SECTION();
mp_emergency_exception_buf_size = size;
mp_emergency_exception_buf = buf;
- MICROPY_END_ATOMIC_SECTION(irq_state);
+ MICROPY_END_ATOMIC_SECTION(atomic_state);
if (old_buf != NULL) {
m_free(old_buf, old_size);