shithub: scc

Download patch

ref: 5dbde374a62f0923bc720ca3f42884cd7340ef96
parent: bdb679b87123bfd001006f45c317e1e6832b791a
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun May 31 14:25:17 EDT 2020

libc: Fix amd64/memcpy

It is impoeeible to know the state of the D flag, so we
have to reset it to be sure that it is always 0.

--- a/src/libc/arch/amd64/memcpy.s
+++ b/src/libc/arch/amd64/memcpy.s
@@ -6,6 +6,7 @@
 _memcpy:
 	mov	%rdi,%rax
 	mov	%rdx,%rcx
+	cld
 	rep
 	movsb
 	ret