]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: 8078/1: get rid of hardcoded assumptions about kernel stack size
authorAndrey Ryabinin <a.ryabinin@samsung.com>
Wed, 18 Jun 2014 15:12:40 +0000 (16:12 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 1 Jul 2014 14:05:47 +0000 (15:05 +0100)
commit9a2b51b6ca93fc42e5676aa444c956f7506185db
tree0014878f0c4844f467e25de7b45cbed1a73889a7
parentc79bf928d99a3b8cf1e8df75726f78e197b17eb6
ARM: 8078/1: get rid of hardcoded assumptions about kernel stack size

Changing kernel stack size on arm is not as simple as it should be:
1) THREAD_SIZE macro doesn't respect PAGE_SIZE and THREAD_SIZE_ORDER
2) stack size is hardcoded in get_thread_info macro

This patch fixes it by calculating THREAD_SIZE and thread_info address
taking into account PAGE_SIZE and THREAD_SIZE_ORDER.

Now changing stack size becomes simply changing THREAD_SIZE_ORDER.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/assembler.h
arch/arm/include/asm/thread_info.h