--- zzzz-none-000/linux-4.1.38/arch/arm/include/asm/thread_info.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/arch/arm/include/asm/thread_info.h 2020-11-25 10:06:48.000000000 +0000 @@ -16,8 +16,13 @@ #include #include +#ifndef CONFIG_THREAD_SIZE_ORDER #define THREAD_SIZE_ORDER 1 -#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) +#else +#define THREAD_SIZE_ORDER CONFIG_THREAD_SIZE_ORDER +#endif +#define THREAD_SIZE (1 << ( PAGE_SHIFT + THREAD_SIZE_ORDER)) + #define THREAD_START_SP (THREAD_SIZE - 8) #ifndef __ASSEMBLY__