From 6bcc87d469eb05ccb82c89cf28c523ecf46be17c Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 2 Aug 2003 22:39:10 +0000 Subject: -15 is incorrect to be used to align stack to 16 bytes, use ~15 instead. --- lib/libpthread/arch/amd64/amd64/enter_uts.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpthread/arch') diff --git a/lib/libpthread/arch/amd64/amd64/enter_uts.S b/lib/libpthread/arch/amd64/amd64/enter_uts.S index b5938bf..c263eab 100644 --- a/lib/libpthread/arch/amd64/amd64/enter_uts.S +++ b/lib/libpthread/arch/amd64/amd64/enter_uts.S @@ -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 -- cgit v1.1