summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/kmem_layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/kmem_layout.h')
-rw-r--r--arch/xtensa/include/asm/kmem_layout.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/kmem_layout.h b/arch/xtensa/include/asm/kmem_layout.h
index 561f872..2317c83 100644
--- a/arch/xtensa/include/asm/kmem_layout.h
+++ b/arch/xtensa/include/asm/kmem_layout.h
@@ -71,4 +71,11 @@
#endif
+#ifndef CONFIG_KASAN
+#define KERNEL_STACK_SHIFT 13
+#else
+#define KERNEL_STACK_SHIFT 15
+#endif
+#define KERNEL_STACK_SIZE (1 << KERNEL_STACK_SHIFT)
+
#endif
OpenPOWER on IntegriCloud