--- zzzz-none-000/linux-2.6.39.4/arch/arm/include/asm/thread_info.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/arch/arm/include/asm/thread_info.h 2021-11-10 13:38:14.000000000 +0000 @@ -14,10 +14,12 @@ #include #include +#include -#define THREAD_SIZE_ORDER 1 -#define THREAD_SIZE 8192 -#define THREAD_START_SP (THREAD_SIZE - 8) +#define THREAD_SIZE_ORDER CONFIG_THREAD_SIZE_ORDER +#define THREAD_SIZE (1 << (PAGE_SHIFT + THREAD_SIZE_ORDER)) +#define THREAD_HALF_SIZE (1 << (PAGE_SHIFT + THREAD_SIZE_ORDER - 1)) +#define THREAD_START_SP (THREAD_SIZE - 8) #ifndef __ASSEMBLY__