xref: /minix3/lib/libc/arch/i386/string/bzero.S (revision 58a2b0008e28f606a7f7f5faaeaba4faac57a1ea)
1/*	bzero()						Author: Kees J. Bot */
2/*								2 Jan 1994 */
3
4/* void bzero(void *s, size_t n) */
5/*	Set a chunk of memory to zero. */
6/*	This is a BSD routine that escaped from the kernel.  Don't use. */
7/* */
8#include <machine/asm.h>
9
10ENTRY(bzero)
11	push	%ebp
12	movl	%esp, %ebp
13	push	12(%ebp)	/* Size */
14	push	$0	/* Zero */
15	push	8(%ebp)	/* String */
16	call	_C_LABEL(memset) /* Call the proper routine */
17	leave
18	ret
19