2010-03-03 15:27:30 +01:00
|
|
|
/* bzero() Author: Kees J. Bot */
|
|
|
|
/* 2 Jan 1994 */
|
|
|
|
|
|
|
|
/* void bzero(void *s, size_t n) */
|
|
|
|
/* Set a chunk of memory to zero. */
|
|
|
|
/* This is a BSD routine that escaped from the kernel. Don't use. */
|
|
|
|
/* */
|
2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
|
|
|
|
|
|
|
ENTRY(bzero)
|
2010-03-03 15:27:30 +01:00
|
|
|
push %ebp
|
|
|
|
movl %esp, %ebp
|
|
|
|
push 12(%ebp) /* Size */
|
|
|
|
push $0 /* Zero */
|
|
|
|
push 8(%ebp) /* String */
|
2010-08-17 18:44:07 +02:00
|
|
|
call _C_LABEL(memset) /* Call the proper routine */
|
2010-03-03 15:27:30 +01:00
|
|
|
leave
|
|
|
|
ret
|