Backport of fix from asynchvfs branch for PM-LOG-VFS-PM deadlock that resulted in...
[minix3-old.git] / lib / i386 / string / bcopy.s
blobdc6bf89f0d69e7bc1357946fcafe7fd21ceb6d71
1 ! bcopy() Author: Kees J. Bot
2 ! 2 Jan 1994
3 .sect .text; .sect .rom; .sect .data; .sect .bss
5 ! void bcopy(const void *s1, void *s2, size_t n)
6 ! Copy a chunk of memory. Handle overlap.
7 ! This is a BSD routine that escaped from the kernel. Don't use.
9 .sect .text
10 .define _bcopy
11 .align 16
12 _bcopy:
13 mov eax, 4(esp) ! Exchange string arguments
14 xchg eax, 8(esp)
15 mov 4(esp), eax
16 jmp __memmove ! Call the proper routine