-/* $NetBSD: asm.h,v 1.5 1994/10/26 08:24:22 cgd Exp $ */
+/* $NetBSD: asm.h,v 1.6 1996/01/26 08:10:10 phil Exp $ */
/*
* Mach Operating System
#define FRAME enter [],0
#define EMARF exit []
-#if 1 /* DEBUG */
-#define DFRAME FRAME
-#define DEMARF EMARF
-#else
-#define DFRAME
-#define DEMARF
-#endif
-
#define S_ARG0 4(sp)
#define S_ARG1 8(sp)
#define S_ARG2 12(sp)
-/* $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
* 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
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 */
movd B_ARG2,r0
andd 3,r0
movsb /* move bytes */
- DEMARF
+ exit []
ret 0
-/* $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
* File: ns532/bzero.s
* Author: Tero Kivinen, Helsinki University of Technology 1992.
*
- * $Id: bzero.s,v 1.1.1.1 1995/10/18 08:51:21 deraadt Exp $
+ * $Id: bzero.s,v 1.2 1996/01/31 06:36:15 deraadt 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 */
bloop: movqb 0,0(r1) /* zero bytes */
addqd 1,r1
acbb -1,r0,bloop
-done: DEMARF
+done: exit []
ret 0