Skip to content

Commit 389c813

Browse files
committed
Tweak declaration for boards with TCM
1 parent 1160635 commit 389c813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
9898
}
9999

100100
#if MICROPY_ENABLE_PYSTACK
101-
static size_t PLACE_IN_DTCM_BSS(_pystack)[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)];
101+
static size_t PLACE_IN_DTCM_BSS(_pystack[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)]);
102102
#endif
103103

104104
void start_mp(supervisor_allocation* heap) {
@@ -130,7 +130,7 @@ void start_mp(supervisor_allocation* heap) {
130130
readline_init0();
131131

132132
#if MICROPY_ENABLE_PYSTACK
133-
mp_pystack_init(_pystack, _pystack + sizeof(_pystack));
133+
mp_pystack_init(_pystack, _pystack + (sizeof(_pystack) / sizeof(size_t)));
134134
#endif
135135

136136
#if MICROPY_ENABLE_GC

0 commit comments

Comments
 (0)