167117Sdfr/* $NetBSD: ptrace.S,v 1.4 1996/11/08 00:51:24 cgd Exp $ */ 267117Sdfr 367117Sdfr/* 467117Sdfr * Copyright (c) 1994, 1995 Carnegie-Mellon University. 567117Sdfr * All rights reserved. 667117Sdfr * 767117Sdfr * Author: Chris G. Demetriou 867117Sdfr * 967117Sdfr * Permission to use, copy, modify and distribute this software and 1067117Sdfr * its documentation is hereby granted, provided that both the copyright 1167117Sdfr * notice and this permission notice appear in all copies of the 1267117Sdfr * software, derivative works or modified versions, and any portions 1367117Sdfr * thereof, and that both notices appear in supporting documentation. 1467117Sdfr * 1567117Sdfr * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 1667117Sdfr * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 1767117Sdfr * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 1867117Sdfr * 1967117Sdfr * Carnegie Mellon requests users of this software to return to 2067117Sdfr * 2167117Sdfr * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 2267117Sdfr * School of Computer Science 2367117Sdfr * Carnegie Mellon University 2467117Sdfr * Pittsburgh PA 15213-3890 2567117Sdfr * 2667117Sdfr * any improvements or extensions that they make and grant Carnegie the 2767117Sdfr * rights to redistribute these changes. 2867117Sdfr */ 2967117Sdfr 30111777Sobrien#include <machine/asm.h> 31111777Sobrien__FBSDID("$FreeBSD$"); 32111777Sobrien 3367117Sdfr#include "SYS.h" 3467117Sdfr 3567117SdfrENTRY(ptrace, 4) 3684755Sdfr add r14=@ltoff(errno),gp ;; 3784755Sdfr ld8 r14=[r14] ;; 3867117Sdfr st4 [r14]=r0 3967117Sdfr CALLSYS_ERROR(ptrace) 4067117Sdfr br.ret.sptk.few rp 4167117SdfrEND(ptrace) 42