--- zzzz-none-000/linux-4.1.52/arch/arm/include/asm/thread_info.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/arch/arm/include/asm/thread_info.h 2022-03-02 11:37:12.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__