MFi386 r253328:
Create a proper stack frame for amd64 version of bcopy(). Note that this also makes the stack properly aligned in the function, despite it is not strictly needed. Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
e03debee49
commit
ac5c592f50
@ -100,6 +100,8 @@ END(bcmp)
|
||||
* ws@tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800
|
||||
*/
|
||||
ENTRY(bcopy)
|
||||
pushq %rbp
|
||||
movq %rsp,%rbp
|
||||
xchgq %rsi,%rdi
|
||||
movq %rdx,%rcx
|
||||
|
||||
@ -116,6 +118,7 @@ ENTRY(bcopy)
|
||||
andq $7,%rcx /* any bytes left? */
|
||||
rep
|
||||
movsb
|
||||
popq %rbp
|
||||
ret
|
||||
|
||||
/* ALIGN_TEXT */
|
||||
@ -135,6 +138,7 @@ ENTRY(bcopy)
|
||||
rep
|
||||
movsq
|
||||
cld
|
||||
popq %rbp
|
||||
ret
|
||||
END(bcopy)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user