summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-03-20 17:03:15 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-03-20 17:03:15 +0100
commit900ceafde74f7c7c5101e3da51d52f8f8d92430f (patch)
treefb1a616e095aee612cb22226af7a322dd75d3804
parented61c3b7b5ebdde30f4d887972876b210fae2372 (diff)
Don't hardcode using __libc_stack_end
* sysdeps/mach/hurd/pt-sysdep.c (_init_routine): Use `stack' parameter instead of hardcoding __libc_stack_end.
-rw-r--r--sysdeps/mach/hurd/pt-sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/pt-sysdep.c b/sysdeps/mach/hurd/pt-sysdep.c
index b23d9df..63e71e8 100644
--- a/sysdeps/mach/hurd/pt-sysdep.c
+++ b/sysdeps/mach/hurd/pt-sysdep.c
@@ -59,7 +59,7 @@ _init_routine (void *stack)
/* Avoid allocating another stack */
attrp = &attr;
pthread_attr_init(attrp);
- pthread_attr_setstack(attrp, __libc_stack_end, __vm_page_size);
+ pthread_attr_setstack(attrp, stack, __vm_page_size);
}
/* Create the pthread structure for the main thread (i.e. us). */