summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-07-20 18:16:20 -0700
committerScott Shawcroft <scott@tannewt.org>2020-07-20 18:16:20 -0700
commit389c81341dc7267a7f51c468d5e90602b76569ab (patch)
tree287c3713ec24ebc8d476912de0e2ae3e73c7af6c
parent1160635608ebeaf3868a327803c0ca248f549123 (diff)
Tweak declaration for boards with TCM
-rwxr-xr-xmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index f1dfa63c6..a571c547a 100755
--- a/main.c
+++ b/main.c
@@ -98,7 +98,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
}
#if MICROPY_ENABLE_PYSTACK
-static size_t PLACE_IN_DTCM_BSS(_pystack)[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)];
+static size_t PLACE_IN_DTCM_BSS(_pystack[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)]);
#endif
void start_mp(supervisor_allocation* heap) {
@@ -130,7 +130,7 @@ void start_mp(supervisor_allocation* heap) {
readline_init0();
#if MICROPY_ENABLE_PYSTACK
- mp_pystack_init(_pystack, _pystack + sizeof(_pystack));
+ mp_pystack_init(_pystack, _pystack + (sizeof(_pystack) / sizeof(size_t)));
#endif
#if MICROPY_ENABLE_GC