1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(SYSLIBC_RCS) && !defined(lint) 38 .text |
39 .asciz "$FreeBSD: head/lib/libc/amd64/sys/ptrace.S 87006 2001-11-27 20:51:26Z jhb $" |
40#endif /* SYSLIBC_RCS and not lint */ 41 42#include "SYS.h" 43 44ENTRY(ptrace) 45 xorl %eax,%eax 46#ifdef PIC 47 PIC_PROLOGUE 48 movl PIC_GOT(CNAME(errno)),%edx 49 movl %eax,(%edx) 50 PIC_EPILOGUE 51#else 52 movl %eax,CNAME(errno) 53#endif |
54 mov $SYS_ptrace,%eax |
55 KERNCALL 56 jb err 57 ret 58err: 59 PIC_PROLOGUE 60 jmp PIC_PLT(HIDENAME(cerror)) |