kernel/freertos: porting debug tools for WCN. [3/3]
PD#SWPL-156997
Problem:
porting debug tools for WCN.
Solution:
porting debug tools for WCN.
Verify:
N/A
Change-Id: Iaaddb135f5a7dcdadce70c9901be2e358bb0929a
Signed-off-by: shijie.xiong <shijie.xiong@amlogic.com>
diff --git a/tasks.c b/tasks.c
index 8331f4e..c392e5e 100644
--- a/tasks.c
+++ b/tasks.c
@@ -841,6 +841,8 @@
uxPriority &= ~portPRIVILEGE_BIT;
#endif /* portUSING_MPU_WRAPPERS == 1 */
+ pxNewTCB->xStackDepth = ulStackDepth;
+
/* Avoid dependency on memset() if it is not required. */
#if ( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
{