How to change the THREAD_SIZE for i.MX6DL Linux BSP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change the THREAD_SIZE for i.MX6DL Linux BSP

ソリューションへジャンプ
1,529件の閲覧回数
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,296件の閲覧回数
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,297件の閲覧回数
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 件の賞賛
返信