1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This software was developed by the Computer Systems Engineering group 6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7 * contributed to Berkeley. 8 * 9 * %sccs.include.redist.c% 10 * 11 * from: $Header: ptrace.s,v 1.2 91/12/20 01:59:00 leres Exp $ 12 */ 13 14#if defined(LIBC_SCCS) && !defined(lint) 15 .asciz "@(#)ptrace.s 8.1 (Berkeley) 06/04/93" 16#endif /* LIBC_SCCS and not lint */ 17 18#include "SYS.h" 19 20ENTRY(ptrace) 21 sethi %hi(_errno), %g1 22 st %g0, [%g1 + %lo(_errno)] 23 mov SYS_ptrace, %g1 24 t ST_SYSCALL 25 bcc 1f 26 nop 27 ERROR() 281: 29 retl 30 nop 31