summaryrefslogtreecommitdiffstatshomepage
path: root/py/nlrx86.S
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-02-27 23:56:46 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-06 17:01:56 +1100
commit05fe66f68a1cf1b7587c55149472ab7bca843631 (patch)
treee2e38a0124db195eb8ae011cd05f2a7316c9b06e /py/nlrx86.S
parentfe866d996f54df0c5687c94b98abff5410ef02c9 (diff)
downloadmicropython-05fe66f68a1cf1b7587c55149472ab7bca843631.tar.gz
micropython-05fe66f68a1cf1b7587c55149472ab7bca843631.zip
py: Move locals/globals dicts to the thread-specific state.
Each threads needs to have its own private references to its current locals/globals dicts, otherwise functions running within different contexts (eg imported from different files) can behave very strangely.
Diffstat (limited to 'py/nlrx86.S')
-rw-r--r--py/nlrx86.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nlrx86.S b/py/nlrx86.S
index ff0cc21305..16d6f57c6a 100644
--- a/py/nlrx86.S
+++ b/py/nlrx86.S
@@ -52,7 +52,7 @@
#endif
// offset of nlr_top within mp_state_thread_t structure
-#define NLR_TOP_TH_OFF (0)
+#define NLR_TOP_TH_OFF (2 * 4)
.file "nlr.s"
.text