mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 20:59:02 +00:00
posix_spawnattr_init() no longer pre-fills attr->stacksize and attr->priority (it leaves them zero, as memset already does). When a caller does not set them, the binary loader supplies them from the loaded ELF (binp->stacksize / binp->priority, parsed from the nx_* symbols), and nxtask_spawn_exec() falls back to the parent priority and CONFIG_POSIX_SPAWN_DEFAULT_STACKSIZE for the posix_spawn() function-task path. This lets an application's stack size and priority embedded as ELF symbols actually drive the spawned task, instead of being overridden by the spawnattr defaults. Signed-off-by: anjiahao <anjiahao@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| lib_psa_destroy.c | ||
| lib_psa_dump.c | ||
| lib_psa_getflags.c | ||
| lib_psa_getpriority.c | ||
| lib_psa_getschedparam.c | ||
| lib_psa_getschedpolicy.c | ||
| lib_psa_getsigmask.c | ||
| lib_psa_getstackaddr.c | ||
| lib_psa_getstacksize.c | ||
| lib_psa_init.c | ||
| lib_psa_setflags.c | ||
| lib_psa_setpriority.c | ||
| lib_psa_setschedparam.c | ||
| lib_psa_setschedpolicy.c | ||
| lib_psa_setsigmask.c | ||
| lib_psa_setstackaddr.c | ||
| lib_psa_setstacksize.c | ||
| lib_psfa_addaction.c | ||
| lib_psfa_addclose.c | ||
| lib_psfa_adddup2.c | ||
| lib_psfa_addopen.c | ||
| lib_psfa_destroy.c | ||
| lib_psfa_dump.c | ||
| lib_psfa_init.c | ||
| Make.defs | ||