Commit 35493b28 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Fix default stack size when COMPAT=n



The CONFIG_STACK_MAX_DEFAULT_SIZE_MB config option does not exist
when CONFIG_COMPAT is disabled. Use default 1 GB stack in this case.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 7dc9ee6e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -50,9 +50,13 @@ static inline unsigned long COLOR_ALIGN(unsigned long addr,
}


#ifdef CONFIG_COMPAT
#define STACK_SIZE_DEFAULT (USER_WIDE_MODE			\
			? (1 << 30)	/* 1 GB */		\
			: (CONFIG_STACK_MAX_DEFAULT_SIZE_MB*1024*1024))
#else
#define STACK_SIZE_DEFAULT (1 << 30)
#endif

unsigned long calc_max_stack_size(unsigned long stack_max)
{