Fix stack alignment for the thread stack. The AMD64 stack has 16 Bytes
commite5a30d2bdd3f1b3261004ca009e8206722e3a54c
authorJoerg Sonnenberger <joerg@NetBSD.org>
Thu, 2 Jul 2009 09:57:09 +0000 (2 09:57 +0000)
committerJoerg Sonnenberger <joerg@NetBSD.org>
Thu, 2 Jul 2009 09:57:09 +0000 (2 09:57 +0000)
tree938d3effa25be3277f0814c38115d7489e75f60a
parent961b8fbe1427a18f1ba22530676a326417b8a061
Fix stack alignment for the thread stack.  The AMD64 stack has 16 Bytes
alignment, but this is active before the return address is pushed onto
the stack.  Fixes random crashes in va_start when the SSE registers are
saved.
lib/libc/arch/x86_64/gen/_lwp.c