summaryrefslogtreecommitdiff
path: root/sysdeps/l4
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/l4
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/l4')
-rw-r--r--sysdeps/l4/hurd/i386/pt-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/l4/hurd/i386/pt-setup.c b/sysdeps/l4/hurd/i386/pt-setup.c
index 6540ee5..2b7a3e2 100644
--- a/sysdeps/l4/hurd/i386/pt-setup.c
+++ b/sysdeps/l4/hurd/i386/pt-setup.c
@@ -47,7 +47,7 @@ stack_setup (struct __pthread *thread,
if (start_routine)
{
/* Set up call frame. */
- top -= 2*sizeof(L4_Word_t);
+ top -= 2;
top = (unsigned long) top & ~0xf;
top[1] = (L4_Word_t) arg; /* Argument to START_ROUTINE. */
top[0] = (L4_Word_t) start_routine;