summaryrefslogtreecommitdiff
path: root/py/obj.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-01-27 14:11:08 -0800
committerGitHub <noreply@github.com>2020-01-27 14:11:08 -0800
commitb36b2493bced9ca127803b307f0c6df52c9568f0 (patch)
tree133f22d411dc0d0b804d1d1d7d3740f337fce304 /py/obj.c
parent7c11a5ad6d59d6a87eec4cfb6ed4728d0c06761b (diff)
parent085242bf5c05fec4ae0450712879e78b7e35ac38 (diff)
Merge pull request #2532 from tannewt/teensy4-dev
Refine iMX RT memory layout and add three boards
Diffstat (limited to 'py/obj.c')
-rw-r--r--py/obj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/obj.c b/py/obj.c
index 09e71be4d..f1e00de1a 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -38,6 +38,7 @@
#include "py/stackctrl.h"
#include "py/stream.h" // for mp_obj_print
+#include "supervisor/linker.h"
#include "supervisor/shared/stack.h"
#include "supervisor/shared/translate.h"
@@ -128,7 +129,7 @@ void mp_obj_print_exception(const mp_print_t *print, mp_obj_t exc) {
mp_print_str(print, "\n");
}
-bool mp_obj_is_true(mp_obj_t arg) {
+bool PLACE_IN_ITCM(mp_obj_is_true)(mp_obj_t arg) {
if (arg == mp_const_false) {
return 0;
} else if (arg == mp_const_true) {