diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-07-20 18:16:20 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-07-20 18:16:20 -0700 |
| commit | 389c81341dc7267a7f51c468d5e90602b76569ab (patch) | |
| tree | 287c3713ec24ebc8d476912de0e2ae3e73c7af6c /main.c | |
| parent | 1160635608ebeaf3868a327803c0ca248f549123 (diff) | |
Tweak declaration for boards with TCM
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
