nuttx/sched/init
Ville Juven 50578dc501 Fix the initial idle tasks environment
- User mode allocator was used for setting up the environment. This
  works in flat mode and probably in protected mode as well, as there
  is always a a single user allocator present
- This does not work in kernel mode, where each user task has its own
  heap allocator. Also, when the idle tasks environment is being set,
  no allocator is ready and the system crashes at once.

Fix this by using the group allocators instead:
- Idle task is a kernel task, so its group is privileged
- Add group_realloc
- Use the group_malloc/realloc functions instead of kumm_malloc
2022-03-16 20:21:19 +08:00
..
init.h init: move USERMAIN_XX out of INIT_ENTRYPOINT 2021-12-24 08:23:30 -06:00
Make.defs sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
nx_bringup.c init: use exec_spawn instead of exec 2021-12-24 08:23:30 -06:00
nx_smpstart.c sched/init: initialize all idle thread's tl_task 2021-07-16 08:37:53 +09:00
nx_start.c Fix the initial idle tasks environment 2022-03-16 20:21:19 +08:00