2010-03-03 15:27:30 +01:00
|
|
|
/* bcopy() Author: Kees J. Bot */
|
|
|
|
/* 2 Jan 1994 */
|
|
|
|
|
|
|
|
/* void bcopy(const void *s1, void *s2, size_t n) */
|
|
|
|
/* Copy a chunk of memory. Handle overlap. */
|
|
|
|
/* This is a BSD routine that escaped from the kernel. Don't use. */
|
|
|
|
/* */
|
2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
|
|
|
|
|
|
|
ENTRY(bcopy)
|
2010-03-03 15:27:30 +01:00
|
|
|
movl 4(%esp), %eax /* Exchange string arguments */
|
|
|
|
xchgl 8(%esp), %eax
|
|
|
|
movl %eax, 4(%esp)
|
2010-08-17 18:44:07 +02:00
|
|
|
jmp _C_LABEL(_memmove) /* Call the proper routine */
|