xref: /csrg-svn/lib/libc/mips/sys/ptrace.s (revision 61148)
152728Sbostic/*-
2*61148Sbostic * Copyright (c) 1991, 1993
3*61148Sbostic *	The Regents of the University of California.  All rights reserved.
452728Sbostic *
552728Sbostic * This code is derived from software contributed to Berkeley by
652728Sbostic * Ralph Campbell.
752728Sbostic *
852728Sbostic * %sccs.include.redist.c%
952728Sbostic */
1052728Sbostic
1152728Sbostic#include "SYS.h"
1252728Sbostic
1352728Sbostic#if defined(LIBC_SCCS) && !defined(lint)
14*61148Sbostic	ASMSTR("@(#)ptrace.s	8.1 (Berkeley) 06/04/93")
1552728Sbostic#endif /* LIBC_SCCS and not lint */
1652728Sbostic
1752728SbosticLEAF(ptrace)
1852728Sbostic	sw	zero, errno
1952728Sbostic	li	v0, SYS_ptrace
2052728Sbostic	syscall
2152728Sbostic	bne	a3, zero, 1f
2252728Sbostic	j	ra
2352728Sbostic1:
2452728Sbostic	j	_cerror
2552728SbosticEND(ptrace)
26