diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-02-29 09:53:35 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-02-29 09:53:35 +0000 |
commit | b42fd8b216a3137f3379ee9d23da5d9c5fc23411 (patch) | |
tree | b3bec6af65ac4afa7fc0909a747127397f074df0 /sysdeps/l4 | |
parent | 5f60c7ab2316b9b4c61294b754a08e4cb1a9c4e6 (diff) |
2008-02-29 Samuel Thibault <samuel.thibault@ens-lyon.org
* sysdeps/l4/hurd/i386/pt-setup.c (stack_setup): Align stack on 0x10
for MMX operations.
* sysdeps/mach/hurd/i386/pt-setup.c (stack_setup): Likewise.
Diffstat (limited to 'sysdeps/l4')
-rw-r--r-- | sysdeps/l4/hurd/i386/pt-setup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/l4/hurd/i386/pt-setup.c b/sysdeps/l4/hurd/i386/pt-setup.c index fe77d533..6afcd141 100644 --- a/sysdeps/l4/hurd/i386/pt-setup.c +++ b/sysdeps/l4/hurd/i386/pt-setup.c @@ -47,8 +47,10 @@ stack_setup (struct __pthread *thread, if (start_routine) { /* Set up call frame. */ - *--top = (L4_Word_t) arg; /* Argument to START_ROUTINE. */ - *--top = (L4_Word_t) start_routine; + top -= 2*sizeof(L4_Word_t); + top = (unsigned long) top & ~0xf; + top[1] = (L4_Word_t) arg; /* Argument to START_ROUTINE. */ + top[0] = (L4_Word_t) start_routine; *--top = 0; /* Fake return address. */ } |