summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/ptrace.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-04 19:47:43 +0100
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-10 23:48:55 +0100
commitf4431396be5b26a9960daf502d129b1b5d126f5e (patch)
treef37f6b0f91e8aae16f13622e81a838d7395de957 /arch/xtensa/include/asm/ptrace.h
parentxtensa: clean up functions in assembly code (diff)
downloadlinux-f4431396be5b26a9960daf502d129b1b5d126f5e.tar.xz
linux-f4431396be5b26a9960daf502d129b1b5d126f5e.zip
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/ptrace.h')
-rw-r--r--arch/xtensa/include/asm/ptrace.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/ptrace.h b/arch/xtensa/include/asm/ptrace.h
index e2d9c5eb10bd..05beae3c6376 100644
--- a/arch/xtensa/include/asm/ptrace.h
+++ b/arch/xtensa/include/asm/ptrace.h
@@ -10,6 +10,7 @@
#ifndef _XTENSA_PTRACE_H
#define _XTENSA_PTRACE_H
+#include <asm/kmem_layout.h>
#include <uapi/asm/ptrace.h>
/*
@@ -38,8 +39,6 @@
* +-----------------------+ --------
*/
-#define KERNEL_STACK_SIZE (2 * PAGE_SIZE)
-
/* Offsets for exception_handlers[] (3 x 64-entries x 4-byte tables). */
#define EXC_TABLE_KSTK 0x004 /* Kernel Stack */