]> sourceware.org Git - glibc.git/blob - sysdeps/unix/mips/brk.S
Amend log entry with omitted file.
[glibc.git] / sysdeps / unix / mips / brk.S
1 /* Copyright (C) 1992, 1995, 1997, 2002, 2003 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Brendan Kehoe (brendan@zen.org).
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
19
20 #include <sysdep.h>
21 #include <sys/asm.h>
22
23 #ifndef SYS_brk
24 #define SYS_brk 17
25 #endif
26
27 #ifndef HAVE_GNU_LD
28 #define _end end
29 #endif
30
31 .data
32 ENTRY(__curbrk)
33 .word 0
34 .end __curbrk
35
36 .text
37 SYSCALL__(brk, 1)
38 .set reorder
39 /* Handle the query case. */
40 bnez a0, 1f
41 move a0, v0
42 1: /* Update __curbrk and exit cleanly. */
43 PTR_S a0, __curbrk
44 move v0, zero
45 jr ra
46 PSEUDO_END(__brk)
47
48 weak_alias (__brk, brk)
This page took 0.036441 seconds and 5 git commands to generate.