--- zzzz-none-000/linux-2.6.39.4/arch/arm/kernel/entry-header.S 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/arm/kernel/entry-header.S 2021-11-10 13:23:09.000000000 +0000 @@ -109,8 +109,8 @@ .endm .macro get_thread_info, rd - mov \rd, sp, lsr #13 - mov \rd, \rd, lsl #13 + mov \rd, sp, lsr #THREAD_SIZE_SHIFT + mov \rd, \rd, lsl #THREAD_SIZE_SHIFT .endm @ @@ -152,8 +152,8 @@ .macro get_thread_info, rd mov \rd, sp - lsr \rd, \rd, #13 - mov \rd, \rd, lsl #13 + lsr \rd, \rd, #THREAD_SIZE_SHIFT + mov \rd, \rd, lsl #THREAD_SIZE_SHIFT .endm @