diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-04 10:47:43 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-10 14:48:55 -0800 |
commit | f4431396be5b26a9960daf502d129b1b5d126f5e (patch) | |
tree | f37f6b0f91e8aae16f13622e81a838d7395de957 /arch/xtensa/include/asm/kmem_layout.h | |
parent | 5cf97ebd8b40e2b1791136fc1476d17365864b18 (diff) |
xtensa: consolidate kernel stack size related definitions
Define kernel stack size in kmem_layout and use it in
current_thread_info, GET_THREAD_INFO, THREAD_SIZE and THERAD_SIZE_ORDER
definitions.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/kmem_layout.h')
-rw-r--r-- | arch/xtensa/include/asm/kmem_layout.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/kmem_layout.h b/arch/xtensa/include/asm/kmem_layout.h index 561f8729bcde..28f9260a766c 100644 --- a/arch/xtensa/include/asm/kmem_layout.h +++ b/arch/xtensa/include/asm/kmem_layout.h @@ -71,4 +71,7 @@ #endif +#define KERNEL_STACK_SHIFT 13 +#define KERNEL_STACK_SIZE (1 << KERNEL_STACK_SHIFT) + #endif |