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