Skip to content

Commit 14152e7

Browse files
committed
nrf/main: Allocate executable memory when needed.
This commit lets the nRF port use the new MICROPY_PERSISTENT_CODE_LOAD_NATIVE configuration entry. The nRF port needs a special procedure to allocate memory used to hold executable native code. This functionality was gated behind the presence of a native emitter and thus its inclusion condition had to be updated. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
1 parent 14ea6d7 commit 14152e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/nrf/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ void MP_WEAK __assert_func(const char *file, int line, const char *func, const c
368368
__fatal_error("Assertion failed");
369369
}
370370

371-
#if MICROPY_EMIT_MACHINE_CODE
371+
#if MICROPY_EMIT_INLINE_THUMB || MICROPY_ENABLE_NATIVE_CODE
372372
void *nrf_native_code_commit(void *buf, unsigned int len, void *reloc) {
373373
(void)len;
374374
if (reloc) {

0 commit comments

Comments
 (0)