pussuw opened a new pull request #5753:
URL: https://github.com/apache/incubator-nuttx/pull/5753


   - 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
   
   ## Summary
   Fixes the initial environment, especially with CONFIG_BUILD_KERNEL
   
   ## Impact
   
   ## Testing
   Tested with boards/risc-v/mpfs/icicle/configs/knsh/defconfig 
(CONFIG_BUILD_KERNEL=y) / not released yet
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to