summaryrefslogtreecommitdiff
path: root/sysdeps/l4/hurd/ia32/pt-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/l4/hurd/ia32/pt-setup.c')
-rw-r--r--sysdeps/l4/hurd/ia32/pt-setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/l4/hurd/ia32/pt-setup.c b/sysdeps/l4/hurd/ia32/pt-setup.c
index cc2f0757..579905c9 100644
--- a/sysdeps/l4/hurd/ia32/pt-setup.c
+++ b/sysdeps/l4/hurd/ia32/pt-setup.c
@@ -72,6 +72,9 @@ stack_setup (struct __pthread *thread,
/* Calculate top of the new stack. */
top = (uintptr_t *) ((uintptr_t) thread->stackaddr + thread->stacksize);
+ /* Align on 0x10 for MMX operations. */
+ top = (uintptr_t) top & ~0xf;
+
if (start_routine)
{
/* Set up call frame. */