projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parisc,metag: Do not hardcode maximum userspace stack size
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
arch
/
parisc
/
include
/
asm
/
processor.h
diff --git
a/arch/parisc/include/asm/processor.h
b/arch/parisc/include/asm/processor.h
index
198a86f
..
d951c96
100644
(file)
--- a/
arch/parisc/include/asm/processor.h
+++ b/
arch/parisc/include/asm/processor.h
@@
-55,6
+55,11
@@
#define STACK_TOP TASK_SIZE
#define STACK_TOP_MAX DEFAULT_TASK_SIZE
#define STACK_TOP TASK_SIZE
#define STACK_TOP_MAX DEFAULT_TASK_SIZE
+/* Allow bigger stacks for 64-bit processes */
+#define STACK_SIZE_MAX (USER_WIDE_MODE \
+ ? (1 << 30) /* 1 GB */ \
+ : (CONFIG_MAX_STACK_SIZE_MB*1024*1024))
+
#endif
#ifndef __ASSEMBLY__
#endif
#ifndef __ASSEMBLY__