From 35a5cc27ac0c15b7ce1bd8a75bad317af414bdd8 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 May 2022 18:19:20 +0900 Subject: [PATCH] include/nuttx/arch.h: Add up_textheap_heapmember --- include/nuttx/arch.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index 5fa1adacd8f..7c01f21c34f 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -801,6 +801,18 @@ FAR void *up_textheap_memalign(size_t align, size_t size); void up_textheap_free(FAR void *p); #endif +/**************************************************************************** + * Name: up_textheap_heapmember + * + * Description: + * Test if memory is from text heap. + * + ****************************************************************************/ + +#if defined(CONFIG_ARCH_USE_TEXT_HEAP) +bool up_textheap_heapmember(FAR void *p); +#endif + /**************************************************************************** * Name: up_setpicbase and up_getpicbase *