mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
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>
This commit is contained in:
@@ -368,7 +368,7 @@ void MP_WEAK __assert_func(const char *file, int line, const char *func, const c
|
||||
__fatal_error("Assertion failed");
|
||||
}
|
||||
|
||||
#if MICROPY_EMIT_MACHINE_CODE
|
||||
#if MICROPY_EMIT_INLINE_THUMB || MICROPY_ENABLE_NATIVE_CODE
|
||||
void *nrf_native_code_commit(void *buf, unsigned int len, void *reloc) {
|
||||
(void)len;
|
||||
if (reloc) {
|
||||
|
||||
Reference in New Issue
Block a user