mirror of git://sourceware.org/git/glibc.git
Update.
* sysdeps/i386/elf/start.S (_start): Align stack to 16-byte boundary for SSE/SSE-2 alignment.
This commit is contained in:
parent
72a2ebb40f
commit
a45406396c
|
@ -1,5 +1,8 @@
|
||||||
2001-02-03 Andreas Jaeger <aj@suse.de>
|
2001-02-03 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
|
||||||
|
boundary for SSE/SSE-2 alignment.
|
||||||
|
|
||||||
* posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
|
* posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
|
||||||
isomac.
|
isomac.
|
||||||
|
|
||||||
|
|
|
@ -51,10 +51,11 @@ _start:
|
||||||
popl %esi /* Pop the argument count. */
|
popl %esi /* Pop the argument count. */
|
||||||
movl %esp, %ecx /* argv starts just at the current stack top.*/
|
movl %esp, %ecx /* argv starts just at the current stack top.*/
|
||||||
|
|
||||||
/* Before pushing the arguments align the stack to a double word
|
/* Before pushing the arguments align the stack to a 16-byte
|
||||||
boundary to avoid penalties from misaligned accesses. Thanks
|
(SSE needs 16-byte alignment) boundary to avoid penalties from
|
||||||
to Edward Seidl <seidl@janed.com> for pointing this out. */
|
misaligned accesses. Thanks to Edward Seidl <seidl@janed.com>
|
||||||
andl $0xfffffff8, %esp
|
for pointing this out. */
|
||||||
|
andl $0xfffffff0, %esp
|
||||||
pushl %eax /* Push garbage because we allocate
|
pushl %eax /* Push garbage because we allocate
|
||||||
28 more bytes. */
|
28 more bytes. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue