diff options
Diffstat (limited to 'sysdeps/viengoos')
-rw-r--r-- | sysdeps/viengoos/pt-thread-alloc.c | 4 |
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; |