svn commit: r333445 - in head/sys/i386: i386 include
Warner Losh
imp at FreeBSD.org
Thu May 10 02:31:56 UTC 2018
Author: imp
Date: Thu May 10 02:31:54 2018
New Revision: 333445
URL: https://svnweb.freebsd.org/changeset/base/333445
Log:
Remove unused bcopyb.
Differential Revision: https://reviews.freebsd.org/D15374
Modified:
head/sys/i386/i386/support.s
head/sys/i386/include/md_var.h
Modified: head/sys/i386/i386/support.s
==============================================================================
--- head/sys/i386/i386/support.s Thu May 10 02:31:48 2018 (r333444)
+++ head/sys/i386/i386/support.s Thu May 10 02:31:54 2018 (r333445)
@@ -145,37 +145,6 @@ ENTRY(fillw)
ret
END(fillw)
-ENTRY(bcopyb)
- pushl %esi
- pushl %edi
- movl 12(%esp),%esi
- movl 16(%esp),%edi
- movl 20(%esp),%ecx
- movl %edi,%eax
- subl %esi,%eax
- cmpl %ecx,%eax /* overlapping && src < dst? */
- jb 1f
- rep
- movsb
- popl %edi
- popl %esi
- ret
-
- ALIGN_TEXT
-1:
- addl %ecx,%edi /* copy backwards. */
- addl %ecx,%esi
- decl %edi
- decl %esi
- std
- rep
- movsb
- popl %edi
- popl %esi
- cld
- ret
-END(bcopyb)
-
/*
* bcopy(src, dst, cnt)
* ws at tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800
Modified: head/sys/i386/include/md_var.h
==============================================================================
--- head/sys/i386/include/md_var.h Thu May 10 02:31:48 2018 (r333444)
+++ head/sys/i386/include/md_var.h Thu May 10 02:31:54 2018 (r333445)
@@ -54,7 +54,6 @@ extern uintptr_t setidt_disp;
struct segment_descriptor;
union savefpu;
-void bcopyb(const void *from, void *to, size_t len);
int cp_slow0(vm_offset_t uva, size_t len, bool write,
void (*f)(vm_offset_t, void *), void *arg);
void cpu_switch_load_gs(void) __asm(__STRING(cpu_switch_load_gs));
More information about the svn-src-head
mailing list