]> Git Repo - linux.git/commitdiff
riscv: use 16KB kernel stack on 64-bit
authorAndreas Schwab <[email protected]>
Mon, 6 Jul 2020 12:32:26 +0000 (14:32 +0200)
committerPalmer Dabbelt <[email protected]>
Tue, 14 Jul 2020 20:40:04 +0000 (13:40 -0700)
With the current 8KB stack size there are frequent overflows in a 64-bit
configuration.  We may split IRQ stacks off in the future, but this fixes a
number of issues right now.

Signed-off-by: Andreas Schwab <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
[Palmer: mention irqstack in the commit text]
Fixes: 7db91e57a0ac ("RISC-V: Task implementation")
Cc: [email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/include/asm/thread_info.h

index 1dd12a0cbb2b0b9b69796958d1fd8fe22244f7bc..464a2bbc97ea334db9ac64c09b65f8ca1f54550c 100644 (file)
 #include <linux/const.h>
 
 /* thread information allocation */
+#ifdef CONFIG_64BIT
+#define THREAD_SIZE_ORDER      (2)
+#else
 #define THREAD_SIZE_ORDER      (1)
+#endif
 #define THREAD_SIZE            (PAGE_SIZE << THREAD_SIZE_ORDER)
 
 #ifndef __ASSEMBLY__
This page took 0.065666 seconds and 4 git commands to generate.