From 93a4b7cac4c68f108d784fba8ded542bf41d03bd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 27 Mar 2001 03:20:20 +0000 Subject: Update. 2001-03-26 Ben Collins * sysdeps/unix/sysv/linux/mips/bits/mman.h: Add MAP_* and MADV_* defines to match other architectures. --- linuxthreads/attr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linuxthreads/attr.c') diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c index b6b1d9c..2d06025 100644 --- a/linuxthreads/attr.c +++ b/linuxthreads/attr.c @@ -288,7 +288,8 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) attr->__guardsize = descr->p_guardsize; attr->__stackaddr_set = descr->p_userstack; #ifdef NEED_SEPARATE_REGISTER_STACK - attr->__stacksize *= 2; + if (descr->p_userstack == 0) + attr->__stacksize *= 2; /* XXX This is awkward. The guard pages are in the middle of the two stacks. We must count the guard size in the stack size since otherwise the range of the stack area cannot be computed. */ @@ -297,7 +298,7 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) #ifndef _STACK_GROWS_UP attr->__stackaddr = (char *)(descr + 1); #else -#error __stackaddr not handled +# error __stackaddr not handled #endif return 0; -- cgit v1.1