How to change the THREAD_SIZE for i.MX6DL Linux BSP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to change the THREAD_SIZE for i.MX6DL Linux BSP

跳至解决方案
1,465 次查看
yuuki
Senior Contributor II

Dear all,

We run the Linux BSP on i.MX6DL_SABRE
Linux BSP: L3.14.28-1.0.0

Would you tell me how to change the THREAD_SIZE?

We changed it as follows

arch/arm/include/asm/thread_info.h

=====================================

#define THREAD_SIZE_ORDER      2
#define THREAD_SIZE            16384
#define THREAD_START_SP        (THREAD_SIZE - 16)

=====================================

Furthermore, is there the point that should be changed?

Best Regards,
Yuuki

标签 (2)
0 项奖励
回复
1 解答
1,232 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Yuuki

this defines linux stack size and usually no need to change it. It is described

in common linux resources

c - How does the kernel know what is the current thread? - Stack Overflow 

c - Debug stack overruns in kernel modules - Stack Overflow 

also one can check linux/arch/arm/include/asm/thread_info.h :

#define THREAD_SIZE_ORDER    1
#define THREAD_SIZE        (PAGE_SIZE << THREAD_SIZE_ORDER) 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,233 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Yuuki

this defines linux stack size and usually no need to change it. It is described

in common linux resources

c - How does the kernel know what is the current thread? - Stack Overflow 

c - Debug stack overruns in kernel modules - Stack Overflow 

also one can check linux/arch/arm/include/asm/thread_info.h :

#define THREAD_SIZE_ORDER    1
#define THREAD_SIZE        (PAGE_SIZE << THREAD_SIZE_ORDER) 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复