diff options
author | Neal H. Walfield <neal@gnu.org> | 2009-02-24 04:22:15 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2009-03-01 21:03:13 +0100 |
commit | f8aab95f8a31dd7d3c2c415303208eb9088db41c (patch) | |
tree | 4cc72e0801aebe1094c052ea0f095aff7b445b37 | |
parent | 546ce72929faf5239125ed8f10ac690b217937d9 (diff) |
Fix computation of address in pthread_thread_alloc.
-rw-r--r-- | libpthread/sysdeps/viengoos/pt-thread-alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/sysdeps/viengoos/pt-thread-alloc.c b/libpthread/sysdeps/viengoos/pt-thread-alloc.c index ce2d6de..7350e0d 100644 --- a/libpthread/sysdeps/viengoos/pt-thread-alloc.c +++ b/libpthread/sysdeps/viengoos/pt-thread-alloc.c @@ -66,8 +66,8 @@ __pthread_thread_alloc (struct __pthread *thread) that a slot close to the root (in terms of depth) is available, we achieve this. */ { - as_ensure (VG_ADDR (VG_FOLIO_OBJECTS - 1, - VG_ADDR_BITS - (PAGESIZE_LOG2 + 7 + 8 * 3))); + int depth = VG_ADDR_BITS - (PAGESIZE_LOG2 + 7 + 8 * 3); + as_ensure (vg_addr_add (VG_ADDR (0, depth), VG_FOLIO_OBJECTS - 1)); } struct storage storage; |