summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2009-02-24 04:22:15 +0100
committerThomas Schwinge <tschwinge@gnu.org>2009-04-12 14:29:00 +0200
commite5c3342b29a01d3f5c6664b5da270d7e5236ce6b (patch)
tree8ce7074df7b0d11161af5967fb89bb8ba69931bf
parent407cc827ddcd59522296e8af9e60f21755411a55 (diff)
Fix computation of address in pthread_thread_alloc.
-rw-r--r--sysdeps/viengoos/pt-thread-alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/viengoos/pt-thread-alloc.c b/sysdeps/viengoos/pt-thread-alloc.c
index ce2d6de..7350e0d 100644
--- a/sysdeps/viengoos/pt-thread-alloc.c
+++ b/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;