diff options
author | marcel <marcel@FreeBSD.org> | 2003-09-19 23:28:13 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-09-19 23:28:13 +0000 |
commit | 265b2be119b5fdb39eee7541529f95fbb316f745 (patch) | |
tree | 95ce758d67e8ea12774d74710d23a00baeeebefe /lib/libkse/arch/i386 | |
parent | accdfbd6265c14ec2d89df2a586816981de7c8aa (diff) | |
download | FreeBSD-src-265b2be119b5fdb39eee7541529f95fbb316f745.zip FreeBSD-src-265b2be119b5fdb39eee7541529f95fbb316f745.tar.gz |
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.
Diffstat (limited to 'lib/libkse/arch/i386')
-rw-r--r-- | lib/libkse/arch/i386/include/pthread_md.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkse/arch/i386/include/pthread_md.h b/lib/libkse/arch/i386/include/pthread_md.h index 9718562..4bcb130 100644 --- a/lib/libkse/arch/i386/include/pthread_md.h +++ b/lib/libkse/arch/i386/include/pthread_md.h @@ -37,6 +37,8 @@ extern int _thr_setcontext(mcontext_t *, intptr_t, intptr_t *); extern int _thr_getcontext(mcontext_t *); +#define KSE_STACKSIZE 16384 + #define THR_GETCONTEXT(ucp) _thr_getcontext(&(ucp)->uc_mcontext) #define THR_SETCONTEXT(ucp) _thr_setcontext(&(ucp)->uc_mcontext, 0, NULL) |