nuttx/Documentation
Marco Casaroli 95c326704e arch/x86_64: Implement up_addrenv_fork() and provide POSIX fork().
Duplicate an address environment into freshly allocated pages mapped at the
same virtual addresses, which is what POSIX fork() is built on.

x86_64_fork_syscall() then lets the child run at the parent's stack addresses.
A pointer to a stack local taken before fork() must name the same object in
the child that it named in the parent, so the child adopts the parent's stack
geometry rather than being given a relocated copy; the parent's stack is
already in the duplicate, at the parent's address, with its contents.  That
shows up as a zero offset, which also means the copy would have the same
source and destination, so both the copy and the frame-pointer relocation are
skipped.

Build-verified on qemu-intel64:knsh_romfs.  NuttX on qemu-intel64 requires
tsc-deadline and pcid, which TCG does not implement, so it cannot be run on
this host.

Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-09-24 18:02:36 -03:00
..
_extensions
_static
_templates
applications Documentation/math: explain that KissFFT is a small FFT library 2026-09-22 00:11:08 +08:00
components drivers/ioexpander: add an optional pin PWM operation 2026-09-24 20:16:12 +08:00
contributing docs: document Python linting requirements 2026-09-15 09:40:09 +08:00
debugging Documentation: Add documentation of SCHED_DUMP_TASKS and SCHED_DUMP_STACK 2026-06-09 08:04:54 -04:00
faq !boards: Remove NSH_ARCHINIT and board_app_initialize 2026-05-02 18:36:46 +08:00
guides arch/x86_64: Implement up_addrenv_fork() and provide POSIX fork(). 2026-09-24 18:02:36 -03:00
implementation docs: document chroot jail root 2026-09-20 22:27:38 +08:00
introduction Documentation: Point the buildroot links at the repository that still exists. 2026-09-13 18:29:40 -03:00
logos
platforms Documentation/rtl8730e: document the general-purpose UART ports 2026-09-24 21:24:35 +08:00
quickstart Documentation: fill in pass1 directory description in organization.rst 2026-07-06 10:18:42 -03:00
reference docs/pthread: Document pthread_sigqueue 2026-09-21 14:53:26 +08:00
ReleaseNotes Documentation: add NuttX 13.0.1 release notes 2026-08-12 21:53:28 +08:00
standards docs/pthread: Document pthread_sigqueue 2026-09-21 14:53:26 +08:00
testing ci: apply Depends-On dependencies to the memory report 2026-09-15 08:47:25 -03:00
.gitignore
conf.py Documentation: conf: Ignore .venv 2026-05-29 01:26:21 +08:00
glossary.rst
index.rst
known-warnings.txt
legacy_README.md Documentation: Point the buildroot links at the repository that still exists. 2026-09-13 18:29:40 -03:00
make.bat
Makefile
Pipfile docs/plantuml: Add PlantUML support to Documentation build 2026-02-15 08:47:23 +01:00
Pipfile.lock build(deps): bump anyio from 4.14.0 to 4.14.2 in /Documentation 2026-09-20 18:04:41 -03:00
security.rst
substitutions.rst