Unbreak memcpy(). memcpy() is defined to return the dst argument.
By using r8 instead of r14 to do the swap, we put the dst argument in the return register. Since bcopy() doesn't clobber r8, we don't have to do anything else. This fixes ports/textproc/aspell.
This commit is contained in:
parent
1ac4ce85a1
commit
a035e5e43c
@ -28,10 +28,9 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
ENTRY(memcpy,3)
|
||||
|
||||
mov r14=in0 ;;
|
||||
mov in0=in1 ;;
|
||||
mov in1=r14
|
||||
br.cond.sptk.few bcopy
|
||||
|
||||
mov r8 = in0
|
||||
mov in0 = in1
|
||||
;;
|
||||
mov in1 = r8
|
||||
br.sptk.few bcopy
|
||||
END(memcpy)
|
||||
|
Loading…
Reference in New Issue
Block a user