diff options
author | Samuel Thibault <sthibault@debian.org> | 2008-02-29 09:51:46 +0000 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2008-02-29 09:51:46 +0000 |
commit | 8cc674379eab9ca19c33202a16b5bdd025680759 (patch) | |
tree | 1084a7913f6f77f143df284d6caa9544351ed64e /debian | |
parent | 09b8718f2dbae8ba2902d4ce9843d6cabcca7931 (diff) |
* debian/patches/mmx.patch: New patch to align the stack of created
threads.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | debian/patches/mmx.patch | 46 |
2 files changed, 50 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 3f4d5254..93fbe98b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,10 @@ hurd (20071119-2) UNRELEASED; urgency=low * debian/control: Line-wrap Build-Depends and Uploaders fields. * debian/control: Now using Standards-Version 3.7.3 (no changes needed). + [ Samuel Thibault] + * debian/patches/mmx.patch: New patch to align the stack of created + threads. + -- Michael Banck <mbanck@debian.org> Tue, 08 Jan 2008 15:54:52 +0100 hurd (20071119-1) unstable; urgency=low diff --git a/debian/patches/mmx.patch b/debian/patches/mmx.patch new file mode 100644 index 00000000..3643209e --- /dev/null +++ b/debian/patches/mmx.patch @@ -0,0 +1,46 @@ +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. + +Index: sysdeps/l4/hurd/i386/pt-setup.c +=================================================================== +RCS file: /cvsroot/hurd/hurd/libpthread/sysdeps/l4/hurd/i386/pt-setup.c,v +retrieving revision 1.1 +diff -u -p -r1.1 pt-setup.c +--- hurd/libpthread/sysdeps/l4/hurd/i386/pt-setup.c 10 Oct 2002 23:05:05 -0000 1.1 ++++ hurd/libpthread/sysdeps/l4/hurd/i386/pt-setup.c 29 Feb 2008 01:30:29 -0000 +@@ -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. */ + } + +Index: sysdeps/mach/hurd/i386/pt-setup.c +=================================================================== +RCS file: /cvsroot/hurd/hurd/libpthread/sysdeps/mach/hurd/i386/pt-setup.c,v +retrieving revision 1.4 +diff -u -p -r1.4 pt-setup.c +--- hurd/libpthread/sysdeps/mach/hurd/i386/pt-setup.c 12 May 2005 20:55:37 -0000 1.4 ++++ hurd/libpthread/sysdeps/mach/hurd/i386/pt-setup.c 29 Feb 2008 01:30:29 -0000 +@@ -63,8 +63,10 @@ stack_setup (struct __pthread *thread, + if (start_routine) + { + /* And then the call frame. */ +- *--top = (uintptr_t) arg; /* Argument to START_ROUTINE. */ +- *--top = (uintptr_t) start_routine; ++ top -= 2*sizeof(uintptr_t); ++ top = (uintptr_t) top & ~0xf; ++ top[1] = (uintptr_t) arg; /* Argument to START_ROUTINE. */ ++ top[0] = (uintptr_t) start_routine; + *--top = 0; /* Fake return address. */ + } + |