nuttx/arch/arm
Marco Casaroli a7e83c7fb5 arch: Let pgalloc() extend the selected address environment.
pgalloc() grows a process heap for sbrk().  It extended the address
environment of the running task (addrenv_own).  While exec() sets up a
new process, the caller selects the new address environment and
allocates the new process's stack from its heap.  When that stack does
not fit in the initial heap, the heap must grow, but the running task is
the caller.  For the kernel thread that starts init this was an
assertion; for a user task it would have grown the caller's heap.

Use the selected address environment (addrenv_curr).  For a normal sbrk()
it is the same as addrenv_own.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-10-09 06:10:52 -03:00
..
include arch/arm/stm32h5: Use common Cortex-M33 USART support 2026-10-08 15:53:21 -03:00
src arch: Let pgalloc() extend the selected address environment. 2026-10-09 06:10:52 -03:00
CMakeLists.txt
Kconfig arch/arm/ra8m1: Add DTC and per-instance SCI FIFO/DTC/termios support 2026-10-06 16:56:58 -03:00