How to change the THREAD_SIZE for i.MX6DL Linux BSP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the THREAD_SIZE for i.MX6DL Linux BSP

Jump to solution
1,473 Views
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

Labels (2)
0 Kudos
Reply
1 Solution
1,240 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
1,241 Views
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 Kudos
Reply