Last active
October 28, 2015 11:52
-
-
Save ilansmith/ef81ea0d7e03202f0d0b to your computer and use it in GitHub Desktop.
Chagne kernel stack size for arm processor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h | |
index 870d7ff..5c5dc5b 100644 | |
--- a/arch/arm/include/asm/thread_info.h | |
+++ b/arch/arm/include/asm/thread_info.h | |
@@ -15,8 +15,8 @@ | |
#include <linux/compiler.h> | |
#include <asm/fpstate.h> | |
-#define THREAD_SIZE_ORDER 1 | |
-#define THREAD_SIZE 8192 | |
+#define THREAD_SIZE_ORDER 2 | |
+#define THREAD_SIZE 16384 | |
#define THREAD_START_SP (THREAD_SIZE - 8) | |
#ifndef __ASSEMBLY__ | |
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S | |
index 160f337..047d2c0 100644 | |
--- a/arch/arm/kernel/entry-header.S | |
+++ b/arch/arm/kernel/entry-header.S | |
@@ -126,8 +126,8 @@ | |
.endm | |
.macro get_thread_info, rd | |
- mov \rd, sp, lsr #13 | |
- mov \rd, \rd, lsl #13 | |
+ mov \rd, sp, lsr #14 | |
+ mov \rd, \rd, lsl #14 | |
.endm | |
@ | |
@@ -184,8 +184,8 @@ | |
.macro get_thread_info, rd | |
mov \rd, sp | |
- lsr \rd, \rd, #13 | |
- mov \rd, \rd, lsl #13 | |
+ lsr \rd, \rd, #14 | |
+ mov \rd, \rd, lsl #14 | |
.endm | |
@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment