summaryrefslogtreecommitdiff
path: root/py/mpstate.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-01-08 20:32:45 -0800
committerScott Shawcroft <scott@tannewt.org>2020-01-17 17:36:08 -0800
commit7d8dac9211dab92d750a0351335b4ad3fffc05e2 (patch)
tree819d63e5495931042b433e2b67eee9848bf47ec1 /py/mpstate.c
parent85c731734a0388c28c8e3895ec1cecd1d9491e0c (diff)
Refine iMX RT memory layout and add three boards
Introduces a way to place CircuitPython code and data into tightly coupled memory (TCM) which is accessible by the CPU in a single cycle. It also frees up room in the corresponding cache for intermittent data. Loading from external flash is slow! The data cache is also now enabled. Adds support for the iMX RT 1021 chip. Adds three new boards: * iMX RT 1020 EVK * iMX RT 1060 EVK * Teensy 4.0 Related to #2492, #2472 and #2477. Fixes #2475.
Diffstat (limited to 'py/mpstate.c')
-rw-r--r--py/mpstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/mpstate.c b/py/mpstate.c
index 6ce64adfd..32f1d60a5 100644
--- a/py/mpstate.c
+++ b/py/mpstate.c
@@ -25,9 +25,10 @@
*/
#include "py/mpstate.h"
+#include "supervisor/linker.h"
#if MICROPY_DYNAMIC_COMPILER
mp_dynamic_compiler_t mp_dynamic_compiler = {0};
#endif
-mp_state_ctx_t mp_state_ctx;
+mp_state_ctx_t PLACE_IN_DTCM_BSS(mp_state_ctx);