Deleted Added
full compact
brk.S (165903) brk.S (184548)
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/i386/sys/brk.S 165903 2007-01-09 00:28:16Z imp $");
37__FBSDID("$FreeBSD: head/lib/libc/i386/sys/brk.S 184548 2008-11-02 01:28:47Z peter $");
38
39#include "SYS.h"
40
41 .globl HIDENAME(curbrk)
42 .globl HIDENAME(minbrk)
43ENTRY(_brk)
44 jmp ok
38
39#include "SYS.h"
40
41 .globl HIDENAME(curbrk)
42 .globl HIDENAME(minbrk)
43ENTRY(_brk)
44 jmp ok
45END(_brk)
45
46ENTRY(brk)
47#ifdef PIC
48 movl 4(%esp),%eax
49 PIC_PROLOGUE
50 movl PIC_GOT(HIDENAME(curbrk)),%edx # set up GOT addressing
51 movl PIC_GOT(HIDENAME(minbrk)),%ecx #
52 PIC_EPILOGUE

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

79 jb err
80 movl 4(%esp),%eax
81 movl %eax,HIDENAME(curbrk)
82 movl $0,%eax
83 ret
84err:
85 jmp HIDENAME(cerror)
86#endif
46
47ENTRY(brk)
48#ifdef PIC
49 movl 4(%esp),%eax
50 PIC_PROLOGUE
51 movl PIC_GOT(HIDENAME(curbrk)),%edx # set up GOT addressing
52 movl PIC_GOT(HIDENAME(minbrk)),%ecx #
53 PIC_EPILOGUE

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

80 jb err
81 movl 4(%esp),%eax
82 movl %eax,HIDENAME(curbrk)
83 movl $0,%eax
84 ret
85err:
86 jmp HIDENAME(cerror)
87#endif
88END(brk)