git: e0545190ef5c - main - i386: retire bzero

Mateusz Guzik mjg at FreeBSD.org
Mon Aug 23 18:38:13 UTC 2021


The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=e0545190ef5c1268bdf9ed7f4d04bc5cd4ec19cf

commit e0545190ef5c1268bdf9ed7f4d04bc5cd4ec19cf
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-23 16:15:29 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-23 18:38:05 +0000

    i386: retire bzero
    
    Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
    routines.")
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/i386/i386/support.s | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s
index 2fc02a67b600..4130affbba5c 100644
--- a/sys/i386/i386/support.s
+++ b/sys/i386/i386/support.s
@@ -40,26 +40,6 @@
 
 	.text
 
-/*
- * bcopy family
- * void bzero(void *buf, u_int len)
- */
-ENTRY(bzero)
-	pushl	%edi
-	movl	8(%esp),%edi
-	movl	12(%esp),%ecx
-	xorl	%eax,%eax
-	shrl	$2,%ecx
-	rep
-	stosl
-	movl	12(%esp),%ecx
-	andl	$3,%ecx
-	rep
-	stosb
-	popl	%edi
-	ret
-END(bzero)
-
 ENTRY(sse2_pagezero)
 	pushl	%ebx
 	movl	8(%esp),%ecx


More information about the dev-commits-src-all mailing list