Skip to contentSkip to conversation

arm64: Change kernel stack size to 16K.

PATCH New Feng Kan 2 participants 2 messages Jul 23, 2013 – Jul 24, 2013 arm64

lore
Share & tools
lore

Feng Kan

author
#0 lore raw

PATCH 1/1 arm64: Change kernel stack size to 16K.

Written by Catalin Marinas, tested by APM on storm platform. This is needed because of the failures encountered when running SpecWeb benchmark test.

---
 arch/arm64/include/asm/thread_info.h |    4 ++--
 arch/arm64/kernel/entry.S            |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm64/include/asm/thread_info.h +2 -2
index 3659e46..23a3c47 100644
@@ -24,10 +24,10 @@
 #include <linux/compiler.h>
 
 #ifndef CONFIG_ARM64_64K_PAGES
-#define THREAD_SIZE_ORDER	1
+#define THREAD_SIZE_ORDER	2
 #endif
 
-#define THREAD_SIZE		8192
+#define THREAD_SIZE		16384
 #define THREAD_START_SP		(THREAD_SIZE - 16)
 
 #ifndef __ASSEMBLY__
arch/arm64/kernel/entry.S +1 -1
index 1d13142..6ad781b 100644
@@ -121,7 +121,7 @@
 
 	.macro	get_thread_info, rd
 	mov	\rd, sp
-	and	\rd, \rd, #~((1 << 13) - 1)	// top of 8K stack
+	and	\rd, \rd, #~(THREAD_SIZE - 1)	// top of stack
 	.endm
 
 /*
Signature · 1 line
1.7.6.1