summaryrefslogtreecommitdiff
path: root/py/map.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-01-29 13:35:22 -0800
committerScott Shawcroft <scott@tannewt.org>2020-01-29 13:35:22 -0800
commitd655c785b6b2501476f1c14caee0e87694df0efe (patch)
treef34739bba8586d9413db273f1d775525b26f4c0b /py/map.c
parent5e789b38504846982a8cd7fa447297a51efc8352 (diff)
parentb36b2493bced9ca127803b307f0c6df52c9568f0 (diff)
Merge commit 'b36b24' into tweak_pixelbuf
Diffstat (limited to 'py/map.c')
-rw-r--r--py/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/map.c b/py/map.c
index 6abf4853f..57c11dbc9 100644
--- a/py/map.c
+++ b/py/map.c
@@ -33,6 +33,8 @@
#include "py/misc.h"
#include "py/runtime.h"
+#include "supervisor/linker.h"
+
#if MICROPY_DEBUG_VERBOSE // print debugging info
#define DEBUG_PRINT (1)
#else // don't print debugging info
@@ -143,7 +145,7 @@ STATIC void mp_map_rehash(mp_map_t *map) {
// - returns slot, with key non-null and value=MP_OBJ_NULL if it was added
// MP_MAP_LOOKUP_REMOVE_IF_FOUND behaviour:
// - returns NULL if not found, else the slot if was found in with key null and value non-null
-mp_map_elem_t *mp_map_lookup(mp_map_t *map, mp_obj_t index, mp_map_lookup_kind_t lookup_kind) {
+mp_map_elem_t *PLACE_IN_ITCM(mp_map_lookup)(mp_map_t *map, mp_obj_t index, mp_map_lookup_kind_t lookup_kind) {
// If the map is a fixed array then we must only be called for a lookup
assert(!map->is_fixed || lookup_kind == MP_MAP_LOOKUP);