summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/thread_info.h
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-01-12 14:46:00 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-10-09 12:21:32 +0300
commit19733fe8721b8d91b799c91082ebb9c139ca6710 (patch)
tree0d56f1df32e8e413d1c2a9b3578327e537920f5b /arch/s390/include/asm/thread_info.h
parent6cad0eb561357dfde382b8d8c03c6ee30c0bff48 (diff)
downloadlinux-19733fe8721b8d91b799c91082ebb9c139ca6710.tar.xz
s390/head: avoid doubling early boot stack size under KASAN
Early boot stack uses predefined 4 pages of memory 0x8000-0xC000. This stack is used to run not instumented decompressor/facilities verification C code. It doesn't make sense to double its size when the kernel is built with KASAN support. BOOT_STACK_ORDER is introduced to avoid that. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/thread_info.h')
-rw-r--r--arch/s390/include/asm/thread_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h
index 79b40600f523..27248f42a03c 100644
--- a/arch/s390/include/asm/thread_info.h
+++ b/arch/s390/include/asm/thread_info.h
@@ -18,6 +18,7 @@
#else
#define THREAD_SIZE_ORDER 2
#endif
+#define BOOT_STACK_ORDER 2
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
#ifndef __ASSEMBLY__