aboutsummaryrefslogtreecommitdiff
path: root/lib/libpthread/arch
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2003-09-19 23:28:13 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2003-09-19 23:28:13 +0000
commit302e193264068cbb07699df8b0c61a9bb31ed580 (patch)
tree95ce758d67e8ea12774d74710d23a00baeeebefe /lib/libpthread/arch
parent9643769a3a801f7bc54688ae63d05169ba64df10 (diff)
Notes
Diffstat (limited to 'lib/libpthread/arch')
-rw-r--r--lib/libpthread/arch/alpha/include/pthread_md.h2
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h3
-rw-r--r--lib/libpthread/arch/i386/include/pthread_md.h2
-rw-r--r--lib/libpthread/arch/ia64/include/pthread_md.h2
4 files changed, 8 insertions, 1 deletions
diff --git a/lib/libpthread/arch/alpha/include/pthread_md.h b/lib/libpthread/arch/alpha/include/pthread_md.h
index 5a4bc99bb908..27b61920203c 100644
--- a/lib/libpthread/arch/alpha/include/pthread_md.h
+++ b/lib/libpthread/arch/alpha/include/pthread_md.h
@@ -33,6 +33,8 @@
#include <stddef.h>
#include <ucontext.h>
+#define KSE_STACKSIZE 16384
+
#define THR_GETCONTEXT(ucp) _alpha_save_context(&(ucp)->uc_mcontext)
#define THR_SETCONTEXT(ucp) _alpha_restore_context(&(ucp)->uc_mcontext, \
0, NULL)
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h
index 27a07cc2cbea..b0bde5a9b072 100644
--- a/lib/libpthread/arch/amd64/include/pthread_md.h
+++ b/lib/libpthread/arch/amd64/include/pthread_md.h
@@ -40,12 +40,13 @@
/* <machine/sysarch.h> 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
diff --git a/lib/libpthread/arch/i386/include/pthread_md.h b/lib/libpthread/arch/i386/include/pthread_md.h
index 971856244f71..4bcb13075cde 100644
--- a/lib/libpthread/arch/i386/include/pthread_md.h
+++ b/lib/libpthread/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)
diff --git a/lib/libpthread/arch/ia64/include/pthread_md.h b/lib/libpthread/arch/ia64/include/pthread_md.h
index a0d4236dcb75..6598f3dc6305 100644
--- a/lib/libpthread/arch/ia64/include/pthread_md.h
+++ b/lib/libpthread/arch/ia64/include/pthread_md.h
@@ -33,6 +33,8 @@
#include <stddef.h>
#include <ucontext.h>
+#define KSE_STACKSIZE 16384
+
#define THR_GETCONTEXT(ucp) _ia64_save_context(&(ucp)->uc_mcontext)
#define THR_SETCONTEXT(ucp) PANIC("THR_SETCONTEXT() now in use!\n")