aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-01-29 15:09:14 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-30 00:01:44 +0000
commit164c3b81848bc81dc200b12370999474225447a3 (patch)
treee369797576666b8119a5d8f609ef898f4a4f1f5c /lib/libc
parent710e45c4b8539d028877769f1a4ec088c48fb5f1 (diff)
downloadsrc-164c3b81848bc81dc200b12370999474225447a3.tar.gz
src-164c3b81848bc81dc200b12370999474225447a3.zip
amd64: add missing ALIGN_TEXT to loops in memset and memmove
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/amd64/string/memmove.S2
-rw-r--r--lib/libc/amd64/string/memset.S1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/amd64/string/memmove.S b/lib/libc/amd64/string/memmove.S
index accc86440610..4797140a1c16 100644
--- a/lib/libc/amd64/string/memmove.S
+++ b/lib/libc/amd64/string/memmove.S
@@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
cmpq $256,%rcx
ja 1256f
+ ALIGN_TEXT
103200:
movq (%rsi),%rdx
movq %rdx,(%rdi)
@@ -198,6 +199,7 @@ __FBSDID("$FreeBSD$");
cmpq $32,%rcx
jb 2016f
+ ALIGN_TEXT
2032:
movq (%rsi),%rdx
movq %rdx,(%rdi)
diff --git a/lib/libc/amd64/string/memset.S b/lib/libc/amd64/string/memset.S
index 67f21714b3d1..0639573a4a3e 100644
--- a/lib/libc/amd64/string/memset.S
+++ b/lib/libc/amd64/string/memset.S
@@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$");
cmpq $256,%rcx
ja 1256f
+ ALIGN_TEXT
103200:
movq %r10,(%rdi)
movq %r10,8(%rdi)