From 265b2be119b5fdb39eee7541529f95fbb316f745 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 19 Sep 2003 23:28:13 +0000 Subject: Make KSE_STACKSIZE machine dependent by moving it from thr_kern.c to pthread_md.h. This commit only moves the definition; it does not change it for any of the platforms. This more easily allows 64-bit architectures (in particular) to pick a slightly larger stack size. --- lib/libpthread/arch/amd64/include/pthread_md.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/arch/amd64/include') diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h index 27a07cc..b0bde5a 100644 --- a/lib/libpthread/arch/amd64/include/pthread_md.h +++ b/lib/libpthread/arch/amd64/include/pthread_md.h @@ -40,12 +40,13 @@ /* should define this, but doesn't. */ extern int sysarch(int, void *); +#define KSE_STACKSIZE 16384 + #define THR_GETCONTEXT(ucp) \ (void)_amd64_save_context(&(ucp)->uc_mcontext) #define THR_SETCONTEXT(ucp) \ (void)_amd64_restore_context(&(ucp)->uc_mcontext, 0, NULL) - #define PER_KSE #undef PER_THREAD -- cgit v1.1