Module Name: src Committed By: skrll Date: Sun Jul 23 07:54:37 UTC 2023
Modified Files: src/common/lib/libc/arch/aarch64/string: bcopy.S Log Message: port-arm/57388: Minor bug fix in bcopy.S Use correct register to check alignment of destination in backwards copy. Patch from Antoni Pokusinski. Thanks. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/arch/aarch64/string/bcopy.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libc/arch/aarch64/string/bcopy.S diff -u src/common/lib/libc/arch/aarch64/string/bcopy.S:1.2 src/common/lib/libc/arch/aarch64/string/bcopy.S:1.3 --- src/common/lib/libc/arch/aarch64/string/bcopy.S:1.2 Sat Apr 11 05:12:52 2020 +++ src/common/lib/libc/arch/aarch64/string/bcopy.S Sun Jul 23 07:54:37 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: bcopy.S,v 1.2 2020/04/11 05:12:52 ryo Exp $ */ +/* $NetBSD: bcopy.S,v 1.3 2023/07/23 07:54:37 skrll Exp $ */ /* * Copyright (c) 2018 Ryo Shimizu <r...@nerv.org> @@ -29,7 +29,7 @@ #include <machine/asm.h> #if defined(LIBC_SCCS) -RCSID("$NetBSD: bcopy.S,v 1.2 2020/04/11 05:12:52 ryo Exp $") +RCSID("$NetBSD: bcopy.S,v 1.3 2023/07/23 07:54:37 skrll Exp $") #endif #if defined(MEMCOPY) @@ -306,7 +306,7 @@ backward_tiny: ret 9: /* length is small(<32), and src or dst may be unaligned */ - eor TMP_X, SRC0, DST0 + eor TMP_X, SRC0, DST ands TMP_X, TMP_X, #7 bne notaligned_backward_small