-15 is incorrect to be used to align stack to 16 bytes, use ~15 instead.

This commit is contained in:
David Xu 2003-08-02 22:39:10 +00:00
parent a9fdd3a89e
commit 3664d35cd5
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
*/
ENTRY(_amd64_enter_uts)
addq %rcx, %rdx /* get stack base */
andq $-15, %rdx /* align to 16 bytes */
andq $~0xf, %rdx /* align to 16 bytes */
movq %rdx, %rsp /* switch to UTS stack */
movq %rdx, %rbp /* set frame */
pushq %rsi

View file

@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
*/
ENTRY(_amd64_enter_uts)
addq %rcx, %rdx /* get stack base */
andq $-15, %rdx /* align to 16 bytes */
andq $~0xf, %rdx /* align to 16 bytes */
movq %rdx, %rsp /* switch to UTS stack */
movq %rdx, %rbp /* set frame */
pushq %rsi