shithub: riscv

Download patch

ref: c3025ce1302e58f077d85da4662509d0d085b0fd
parent: e7d670f1558576f5cfdb9f4b3f74bc4cda91e62c
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Sep 5 15:46:49 EDT 2023

libc/arm64: memmove/memset - save/restore link register

--- a/sys/src/libc/arm64/memmove.s
+++ b/sys/src/libc/arm64/memmove.s
@@ -1,5 +1,5 @@
 TEXT memcpy(SB), 1, $-4
-TEXT memmove(SB), $-4
+TEXT memmove(SB), $0
 	MOV	from+8(FP), R1
 	MOV	n+16(FP), R2
 
--- a/sys/src/libc/arm64/memset.s
+++ b/sys/src/libc/arm64/memset.s
@@ -1,4 +1,4 @@
-TEXT memset(SB), $-4
+TEXT memset(SB), $0
 	MOVBU	c+8(FP), R1
 	MOV	n+16(FP), R2