diff options
Diffstat (limited to 'libpthread/linuxthreads.old/manager.c')
| -rw-r--r-- | libpthread/linuxthreads.old/manager.c | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c index 637a578d5..df26344e7 100644 --- a/libpthread/linuxthreads.old/manager.c +++ b/libpthread/linuxthreads.old/manager.c @@ -360,7 +360,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,      }    else      { -#ifdef __ARCH_HAS_MMU__ +#ifdef __ARCH_USE_MMU__        stacksize = STACK_SIZE - pagesize;        if (attr != NULL)          stacksize = MIN (stacksize, roundup(attr->__stacksize, pagesize)); @@ -450,7 +450,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,        /* on non-MMU systems we always have non-standard stack frames */        __pthread_nonstandard_stacks = 1; -#endif /* __ARCH_HAS_MMU__ */ +#endif /* __ARCH_USE_MMU__ */      }    /* Clear the thread data structure.  */ @@ -495,7 +495,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,                                   &new_thread, &new_thread_bottom,                                   &guardaddr, &guardsize) == 0)          break; -#ifndef __ARCH_HAS_MMU__ +#ifndef __ARCH_USE_MMU__        else          /* When there is MMU, mmap () is used to allocate the stack. If one           * segment is already mapped, we should continue to see if we can @@ -632,14 +632,14 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,      /* Free the stack if we allocated it */      if (attr == NULL || !attr->__stackaddr_set)        { -#ifdef __ARCH_HAS_MMU__ +#ifdef __ARCH_USE_MMU__  	if (new_thread->p_guardsize != 0)  	  munmap(new_thread->p_guardaddr, new_thread->p_guardsize);  	munmap((caddr_t)((char *)(new_thread+1) - INITIAL_STACK_SIZE),  	       INITIAL_STACK_SIZE);  #else  	free(new_thread_bottom); -#endif /* __ARCH_HAS_MMU__ */ +#endif /* __ARCH_USE_MMU__ */        }      __pthread_handles[sseg].h_descr = NULL;      __pthread_handles[sseg].h_bottom = NULL; @@ -716,7 +716,7 @@ static void pthread_free(pthread_descr th)    /* If initial thread, nothing to free */    if (th == &__pthread_initial_thread) return; -#ifdef __ARCH_HAS_MMU__ +#ifdef __ARCH_USE_MMU__    if (!th->p_userstack)      {        /* Free the stack and thread descriptor area */ @@ -729,7 +729,7 @@ static void pthread_free(pthread_descr th)    if (!th->p_userstack) {        free(h_bottom_save);    } -#endif /* __ARCH_HAS_MMU__ */ +#endif /* __ARCH_USE_MMU__ */  }  /* Handle threads that have exited */  | 
