Clean up of assembly files.
This commit is contained in:
parent
9b68d7d99e
commit
2ec27d30fe
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bcopy.s,v 1.5 1995/08/29 22:37:41 phil Exp $ */
|
||||
/* $NetBSD: bcopy.s,v 1.6 1996/01/26 08:11:46 phil Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
@ -33,15 +33,13 @@
|
||||
* Helsinki University of Technology 1992.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
.text
|
||||
|
||||
/* ovbcopy (from, to, bcount) -- does overlapping stuff */
|
||||
|
||||
ENTRY(bcopy)
|
||||
ENTRY(ovbcopy)
|
||||
DFRAME
|
||||
enter [],0
|
||||
movd B_ARG0,r1 /* from */
|
||||
movd B_ARG1,r2 /* to */
|
||||
cmpd r2, r1
|
||||
@ -66,13 +64,13 @@ ENTRY(ovbcopy)
|
||||
movd B_ARG2, r0
|
||||
lshd -2,r0
|
||||
movsd b /* move words backwards */
|
||||
DEMARF
|
||||
exit []
|
||||
ret 0
|
||||
|
||||
/* bcopy(from, to, bcount) -- non overlapping */
|
||||
|
||||
/* ENTRY(bcopy) -- same as ovbcopy until furthur notice.... */
|
||||
DFRAME
|
||||
enter [],0
|
||||
movd B_ARG0,r1 /* from */
|
||||
movd B_ARG1,r2 /* to */
|
||||
common: movd B_ARG2,r0 /* bcount */
|
||||
@ -81,5 +79,5 @@ common: movd B_ARG2,r0 /* bcount */
|
||||
movd B_ARG2,r0
|
||||
andd 3,r0
|
||||
movsb /* move bytes */
|
||||
DEMARF
|
||||
exit []
|
||||
ret 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bzero.s,v 1.2 1994/10/26 08:24:51 cgd Exp $ */
|
||||
/* $NetBSD: bzero.s,v 1.3 1996/01/26 08:11:47 phil Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
@ -31,19 +31,17 @@
|
||||
* File: ns532/bzero.s
|
||||
* Author: Tero Kivinen, Helsinki University of Technology 1992.
|
||||
*
|
||||
* $Id: bzero.s,v 1.2 1994/10/26 08:24:51 cgd Exp $
|
||||
* $Id: bzero.s,v 1.3 1996/01/26 08:11:47 phil Exp $
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* bzero(char * addr, unsigned int length)
|
||||
*/
|
||||
|
||||
.text
|
||||
Entry(blkclr)
|
||||
ENTRY(bzero)
|
||||
DFRAME
|
||||
enter [],0
|
||||
movd B_ARG0,r1 /* addr */
|
||||
movd B_ARG1,r2 /* length */
|
||||
movd r1,r0 /* align addr */
|
||||
@ -95,5 +93,5 @@ bytes: movd r2,r0 /* length */
|
||||
bloop: movqb 0,0(r1) /* zero bytes */
|
||||
addqd 1,r1
|
||||
acbb -1,r0,bloop
|
||||
done: DEMARF
|
||||
done: exit []
|
||||
ret 0
|
||||
|
Loading…
Reference in New Issue
Block a user