xref: /minix3/lib/libc/arch/i386/string/bzero.S (revision 68db8ed0b9600e11489ca631e7ea24a6f5adb15f)
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.text
9.globl	_bzero
10.balign	16
11_bzero:
12	push	%ebp
13	movl	%esp, %ebp
14	push	12(%ebp)	/* Size */
15	push	$0	/* Zero */
16	push	8(%ebp)	/* String */
17	call	_memset	/* Call the proper routine */
18	leave
19	ret
20