nuttx/arch/xtensa/include
Marco Casaroli 5866c4e3af xtensa: Support BUILD_KERNEL.
Add what a kernel build needs on Xtensa:  a crt0 for a user process, the
kernel stack allocation that a system call switches to, the syscall entry and
return path for an unprivileged caller, and the initial register state that
starts a user task at EL0 with its save area on the kernel stack.

On the ESP32-S3 the arch code that runs while the flash mapping is in flux
moves to IRAM, and the kernel heap is placed above the user .bss so that
up_allocate_kheap() and the user address environment do not overlap.

Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-09-10 23:28:43 +08:00
..
esp32
esp32s2
esp32s3
lx6
lx7
xtensa
.gitignore
arch.h
elf.h
inttypes.h
irq.h xtensa: Support BUILD_KERNEL. 2026-09-10 23:28:43 +08:00
limits.h
loadstore.h
setjmp.h
simcall.h
stdarg.h
syscall.h
types.h