Deleted Added
full compact
brk.S (165903) brk.S (184547)
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 "@(#)brk.s 5.2 (Berkeley) 12/17/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 "@(#)brk.s 5.2 (Berkeley) 12/17/90"
35#endif /* SYSLIBC_SCCS and not lint */
36#include <machine/asm.h>
37__FBSDID("$FreeBSD: head/lib/libc/amd64/sys/brk.S 165903 2007-01-09 00:28:16Z imp $");
37__FBSDID("$FreeBSD: head/lib/libc/amd64/sys/brk.S 184547 2008-11-02 01:10:54Z peter $");
38
39#include "SYS.h"
40
41 .globl HIDENAME(curbrk)
42 .globl HIDENAME(minbrk)
43ENTRY(_brk)
44 pushq %rdi
45 jmp ok
38
39#include "SYS.h"
40
41 .globl HIDENAME(curbrk)
42 .globl HIDENAME(minbrk)
43ENTRY(_brk)
44 pushq %rdi
45 jmp ok
46END(_brk)
46
47ENTRY(brk)
48 pushq %rdi
49 movq %rdi,%rax
50#ifdef PIC
51 movq PIC_GOT(HIDENAME(minbrk)),%rdx
52 cmpq %rax,(%rdx)
53#else

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

76err:
77 addq $8, %rsp
78#ifdef PIC
79 movq PIC_GOT(HIDENAME(cerror)),%rdx
80 jmp *%rdx
81#else
82 jmp HIDENAME(cerror)
83#endif
47
48ENTRY(brk)
49 pushq %rdi
50 movq %rdi,%rax
51#ifdef PIC
52 movq PIC_GOT(HIDENAME(minbrk)),%rdx
53 cmpq %rax,(%rdx)
54#else

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

77err:
78 addq $8, %rsp
79#ifdef PIC
80 movq PIC_GOT(HIDENAME(cerror)),%rdx
81 jmp *%rdx
82#else
83 jmp HIDENAME(cerror)
84#endif
85END(brk)