summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-08-02 22:39:10 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-08-02 22:39:10 +0000
commit6bcc87d469eb05ccb82c89cf28c523ecf46be17c (patch)
tree982fd4445b28823609e0fe87f021e53b71f47f04 /lib
parent07563cc68f400138b2d6221044f0661630af42e1 (diff)
downloadFreeBSD-src-6bcc87d469eb05ccb82c89cf28c523ecf46be17c.zip
FreeBSD-src-6bcc87d469eb05ccb82c89cf28c523ecf46be17c.tar.gz
-15 is incorrect to be used to align stack to 16 bytes, use ~15 instead.
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/amd64/amd64/enter_uts.S2
-rw-r--r--lib/libpthread/arch/amd64/amd64/enter_uts.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkse/arch/amd64/amd64/enter_uts.S b/lib/libkse/arch/amd64/amd64/enter_uts.S
index b5938bf..c263eab 100644
--- a/lib/libkse/arch/amd64/amd64/enter_uts.S
+++ b/lib/libkse/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
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
OpenPOWER on IntegriCloud