--- zzzz-none-000/linux-3.10.107/arch/arm/include/asm/thread_info.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/arm/include/asm/thread_info.h 2021-11-10 11:53:52.000000000 +0000 @@ -14,9 +14,15 @@ #include #include +#include -#define THREAD_SIZE_ORDER 1 -#define THREAD_SIZE 8192 +#ifdef CONFIG_THREAD_SIZE_ORDER +#define THREAD_SIZE_ORDER (CONFIG_THREAD_SIZE_ORDER) +#else +#define THREAD_SIZE_ORDER 1 +#endif + +#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) #define THREAD_START_SP (THREAD_SIZE - 8) #ifndef __ASSEMBLY__