summaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-08-03 00:13:13 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-08-03 00:13:13 +0000
commit26ce9018aa473f5282b70d057f6b6de6d1cdca99 (patch)
treed5c95eb8ce05d78a6d4900fe0cfdd3d40c4b2c63 /sysdeps/mach
parentfc1964a7d295bec777d14b0f96692528bdb79437 (diff)
* sysdeps/mach/hurd/i386/pt-setup.c (stack_setup): Fix cast from
thread to integer. Fix reservation of stack room for initial frame. * sysdeps/l4/hurd/i386/pt-setup.c (stack_setup): Fix reservation of stack room for initial frame.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/i386/pt-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/i386/pt-setup.c b/sysdeps/mach/hurd/i386/pt-setup.c
index 5abbcfc..ba438d6 100644
--- a/sysdeps/mach/hurd/i386/pt-setup.c
+++ b/sysdeps/mach/hurd/i386/pt-setup.c
@@ -58,12 +58,12 @@ stack_setup (struct __pthread *thread,
top -= __hurd_threadvar_max;
/* Save the self pointer. */
- top[_HURD_THREADVAR_THREAD] = (void *) thread;
+ top[_HURD_THREADVAR_THREAD] = (uintptr_t) thread;
if (start_routine)
{
/* And then the call frame. */
- top -= 2*sizeof(uintptr_t);
+ top -= 2;
top = (uintptr_t) top & ~0xf;
top[1] = (uintptr_t) arg; /* Argument to START_ROUTINE. */
top[0] = (uintptr_t) start_routine;