mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-18 09:35:21 +00:00
If an unitialized/zeroed optional attribute was passed to osThreadNew the priority would be osThreadNone i.e. uninitialized. This causes an ASSERT to be hit as the priority isn't valid (it is not between osPriorityIdle and osPriorityISR). The fix checks the passed in priority is not osPriorityNone and assigns osPriorityNormal. This is the correct CMSIS behaviour. The ASSERT will still be hit if the priority is invalid (<0). Signed-off-by: Carlos Stuart <carlosstuart1970@gmail.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
event_flags.c | ||
Kconfig | ||
kernel.c | ||
mempool.c | ||
msgq.c | ||
mutex.c | ||
semaphore.c | ||
thread_flags.c | ||
thread.c | ||
timer.c | ||
wrapper.h |