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