Convert library asm files to GAS syntax
This commit is contained in:
19
lib/libc/arch/i386/string/bzero.S
Normal file
19
lib/libc/arch/i386/string/bzero.S
Normal file
@@ -0,0 +1,19 @@
|
||||
/* 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. */
|
||||
/* */
|
||||
.text
|
||||
.globl _bzero
|
||||
.balign 16
|
||||
_bzero:
|
||||
push %ebp
|
||||
movl %esp, %ebp
|
||||
push 12(%ebp) /* Size */
|
||||
push $0 /* Zero */
|
||||
push 8(%ebp) /* String */
|
||||
call _memset /* Call the proper routine */
|
||||
leave
|
||||
ret
|
||||
Reference in New Issue
Block a user