From: David van Moolenbroek Date: Fri, 4 Sep 2015 01:24:52 +0000 (+0200) Subject: VFS/libblockdriver: enlarge threads stacks for ASR X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/verify-sign/tz-link.htm?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F3173%2F1;p=minix.git VFS/libblockdriver: enlarge threads stacks for ASR Change-Id: If4e858bc2dbb2c69850cd265ff612bd5a6119bd3 --- diff --git a/minix/lib/libblockdriver/const.h b/minix/lib/libblockdriver/const.h index 1b3495bfa..4bba78001 100644 --- a/minix/lib/libblockdriver/const.h +++ b/minix/lib/libblockdriver/const.h @@ -2,7 +2,11 @@ #define _BLOCKDRIVER_CONST_H /* Thread stack size. */ +#ifdef _MINIX_MAGIC +#define STACK_SIZE 32768 +#else #define STACK_SIZE 8192 +#endif /* Maximum number of devices supported. */ #define MAX_DEVICES BLOCKDRIVER_MAX_DEVICES diff --git a/minix/servers/vfs/worker.c b/minix/servers/vfs/worker.c index e85d0d2be..0146be880 100644 --- a/minix/servers/vfs/worker.c +++ b/minix/servers/vfs/worker.c @@ -11,7 +11,9 @@ static unsigned int pending; static unsigned int busy; static int block_all; -#ifdef MKCOVERAGE +#if defined(_MINIX_MAGIC) +# define TH_STACKSIZE (64 * 1024) +#elif defined(MKCOVERAGE) # define TH_STACKSIZE (40 * 1024) #else # define TH_STACKSIZE (28 * 1024)