diff options
| author | David Lechner <david@pybricks.com> | 2022-07-01 14:10:39 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-18 13:49:09 +1000 |
| commit | e5631d959517fcdd8752c60a1c5d07e8e86fbfa5 (patch) | |
| tree | d93279a70acf999ea0457592c96ff1d2fa8d1177 | |
| parent | 81dbea1ce3c27a609a9b27caadd12cceef86a907 (diff) | |
unix/alloc: Use MP_REGISTER_ROOT_POINTER() for mmap_region_head.
This uses MP_REGISTER_ROOT_POINTER() to register mmap_region_head and
removes the same from mpconfigport.h.
Signed-off-by: David Lechner <david@pybricks.com>
| -rw-r--r-- | ports/unix/alloc.c | 2 | ||||
| -rw-r--r-- | ports/unix/mpconfigport.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/unix/alloc.c b/ports/unix/alloc.c index 7fe7b4dba..e9cf52158 100644 --- a/ports/unix/alloc.c +++ b/ports/unix/alloc.c @@ -104,4 +104,6 @@ void ffi_closure_free(void *ptr) { } #endif +MP_REGISTER_ROOT_POINTER(void *mmap_region_head); + #endif // MICROPY_EMIT_NATIVE || (MICROPY_PY_FFI && MICROPY_FORCE_PLAT_ALLOC_EXEC) diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h index 4594b8be9..eb2da2393 100644 --- a/ports/unix/mpconfigport.h +++ b/ports/unix/mpconfigport.h @@ -305,7 +305,6 @@ struct _mp_bluetooth_nimble_malloc_t; #endif #define MICROPY_PORT_ROOT_POINTERS \ - void *mmap_region_head; \ MICROPY_BLUETOOTH_ROOT_POINTERS \ // We need to provide a declaration/definition of alloca() |
