From e5c3342b29a01d3f5c6664b5da270d7e5236ce6b Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 24 Feb 2009 04:22:15 +0100 Subject: Fix computation of address in pthread_thread_alloc. --- sysdeps/viengoos/pt-thread-alloc.c | 4 ++-- 1 file 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; -- cgit v1.2.3