Deleted Added
full compact
ptrace.S (217106) ptrace.S (240152)
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

--- 20 unchanged lines hidden (view full) ---

29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#if defined(SYSLIBC_SCCS) && !defined(lint)
34 .asciz "@(#)ptrace.s 5.1 (Berkeley) 4/23/90"
35#endif /* SYSLIBC_SCCS and not lint */
36#include <machine/asm.h>
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

--- 20 unchanged lines hidden (view full) ---

29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#if defined(SYSLIBC_SCCS) && !defined(lint)
34 .asciz "@(#)ptrace.s 5.1 (Berkeley) 4/23/90"
35#endif /* SYSLIBC_SCCS and not lint */
36#include <machine/asm.h>
37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/ptrace.S 217106 2011-01-07 16:08:40Z kib $");
37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/ptrace.S 240152 2012-09-05 21:41:05Z jilles $");
38
39#include "SYS.h"
40
41ENTRY(ptrace)
42 xorl %eax,%eax
43#ifdef PIC
44 PIC_PROLOGUE
45 movl PIC_GOT(CNAME(errno)),%edx
46 movl %eax,(%edx)
47 PIC_EPILOGUE
48#else
49 movl %eax,CNAME(errno)
50#endif
51 mov $SYS_ptrace,%eax
52 KERNCALL
38
39#include "SYS.h"
40
41ENTRY(ptrace)
42 xorl %eax,%eax
43#ifdef PIC
44 PIC_PROLOGUE
45 movl PIC_GOT(CNAME(errno)),%edx
46 movl %eax,(%edx)
47 PIC_EPILOGUE
48#else
49 movl %eax,CNAME(errno)
50#endif
51 mov $SYS_ptrace,%eax
52 KERNCALL
53 jb err
53 jb HIDENAME(cerror)
54 ret
54 ret
55err:
56 PIC_PROLOGUE
57 jmp PIC_PLT(HIDENAME(cerror))
58END(ptrace)
59
60 .section .note.GNU-stack,"",%progbits
55END(ptrace)
56
57 .section .note.GNU-stack,"",%progbits