diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-05-31 08:26:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-05-31 08:26:29 +0000 |
commit | d662b0123152d4d7e1663f49cd8a01ed302cc2e1 (patch) | |
tree | 6d361fa348eff3b3615eb707df1255eda6b735de /libpthread/linuxthreads.old/manager.c | |
parent | 8daa5a586a8daef3af754328ee84d4079750dc56 (diff) |
Bernd Schmidt writes: make sure custom stacks work properly for no-mmu
Diffstat (limited to 'libpthread/linuxthreads.old/manager.c')
-rw-r--r-- | libpthread/linuxthreads.old/manager.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c index cad2aacdf..fc39b1e25 100644 --- a/libpthread/linuxthreads.old/manager.c +++ b/libpthread/linuxthreads.old/manager.c @@ -355,6 +355,13 @@ static int pthread_allocate_stack(const pthread_attr_t *attr, guardaddr = NULL; guardsize = 0; __pthread_nonstandard_stacks = 1; +#ifndef __ARCH_USE_MMU__ + /* check the initial thread stack boundaries so they don't overlap */ + NOMMU_INITIAL_THREAD_BOUNDS((char *) new_thread, (char *) new_thread_bottom); + + PDEBUG("initial stack: bos=%p, tos=%p\n", __pthread_initial_thread_bos, + __pthread_initial_thread_tos); +#endif } else { |