summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-05-17 00:18:20 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-05-17 00:18:20 +0000
commitabe2d9975d32e7a640780ccc9a8130bf6b0d2d24 (patch)
tree34b7bafde9415a3d1032ebfd99abf912f332968e /sys
parent6be933e14c4263a21a997a505f56e1e425b35d95 (diff)
remove bcopyb and bcopyw, they're not used nowdays; mickey@ aaron@ ok.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/locore.s77
1 files changed, 1 insertions, 76 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s
index 41f01f844c0..86f03e2fe27 100644
--- a/sys/arch/i386/i386/locore.s
+++ b/sys/arch/i386/i386/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.55 2001/05/05 23:25:37 art Exp $ */
+/* $OpenBSD: locore.s,v 1.56 2001/05/17 00:18:19 fgsch Exp $ */
/* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */
/*-
@@ -735,38 +735,6 @@ ENTRY(fillw)
ret
/*
- * bcopyb(caddr_t from, caddr_t to, size_t len);
- * Copy len bytes, one byte at a time.
- */
-ENTRY(bcopyb)
- pushl %esi
- pushl %edi
- movl 12(%esp),%esi
- movl 16(%esp),%edi
- movl 20(%esp),%ecx
- cmpl %esi,%edi # potentially overlapping?
- jnb 1f
- cld # no; copy forward
- rep
- movsb
- popl %edi
- popl %esi
- ret
-
- ALIGN_TEXT
-1: addl %ecx,%edi # copy backward
- addl %ecx,%esi
- std
- decl %edi
- decl %esi
- rep
- movsb
- popl %edi
- popl %esi
- cld
- ret
-
-/*
* kcopy(caddr_t from, caddr_t to, size_t len);
* Copy len bytes, abort on fault.
*/
@@ -825,49 +793,6 @@ ENTRY(kcopy)
ret
/*
- * bcopyw(caddr_t from, caddr_t to, size_t len);
- * Copy len bytes, two bytes at a time.
- */
-ENTRY(bcopyw)
- pushl %esi
- pushl %edi
- movl 12(%esp),%esi
- movl 16(%esp),%edi
- movl 20(%esp),%ecx
- cmpl %esi,%edi # potentially overlapping?
- jnb 1f
- cld # no; copy forward
- shrl $1,%ecx # copy by 16-bit words
- rep
- movsw
- adc %ecx,%ecx # any bytes left?
- rep
- movsb
- popl %edi
- popl %esi
- ret
-
- ALIGN_TEXT
-1: addl %ecx,%edi # copy backward
- addl %ecx,%esi
- std
- andl $1,%ecx # any fractional bytes?
- decl %edi
- decl %esi
- rep
- movsb
- movl 20(%esp),%ecx # copy remainder by 16-bit words
- shrl $1,%ecx
- decl %esi
- decl %edi
- rep
- movsw
- popl %edi
- popl %esi
- cld
- ret
-
-/*
* bcopy(caddr_t from, caddr_t to, size_t len);
* Copy len bytes.
*/