mirror of
https://github.com/apache/nuttx.git
synced 2026-08-28 04:40:41 +00:00
When an architecture does not provide a separate text heap (CONFIG_ARCH_USE_TEXT_HEAP is not selected), redirect the text heap API to the normal kernel heap in include/nuttx/arch.h. On flat-memory architectures the kernel heap is executable, so code written against the portable API (up_textheap_memalign() and friends) now works on every such port without per-arch stubs that just wrap kmm_memalign(). Suggested by review on the previous revision of this change, which added exactly such a stub for rp23xx. up_textheap_data_address() and up_textheap_data_sync() identity fallbacks become available unconditionally as well. Gate the sim implementation on CONFIG_ARCH_USE_TEXT_HEAP: it was compiled unconditionally (harmless before, but it would now collide with the fallback macros), matching how every other implementation is already gated in its Make.defs/CMakeLists. Assisted-by: Claude (Anthropic Claude Code) Signed-off-by: Ricard Rosson <ricard@groundbits.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||