From a9317b18956cce1e7d87e63f1bb387568202254f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 May 2022 18:19:50 +0900 Subject: [PATCH] cxd56xx: Implement up_textheap_heapmember --- arch/arm/src/cxd56xx/cxd56_textheap.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/src/cxd56xx/cxd56_textheap.c b/arch/arm/src/cxd56xx/cxd56_textheap.c index b8a4ee05a8..c40afadace 100644 --- a/arch/arm/src/cxd56xx/cxd56_textheap.c +++ b/arch/arm/src/cxd56xx/cxd56_textheap.c @@ -95,3 +95,21 @@ void up_textheap_free(void *p) kmm_free(p); } + +/**************************************************************************** + * Name: up_textheap_heapmember() + ****************************************************************************/ + +bool up_textheap_heapmember(void *p) +{ + if (p == NULL) + { + return false; + } + +#ifdef CONFIG_CXD56_USE_SYSBUS + p += SYSBUS_ADDRESS_OFFSET; +#endif + + return kmm_heapmember(p); +}