Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2018 02:31:54 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333445 - in head/sys/i386: i386 include
Message-ID:  <201805100231.w4A2VsAa054380@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805100231.w4A2VsAa054380>