123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include "sysdep.h"
- #include <asm/unistd.h>
- #include <asm/errno.h>
- .global __curbrk
- .hidden __curbrk
- .type __curbrk,@object
- .size __curbrk,8
- .data
- .align 8
- __curbrk:
- data8 0
- weak_alias (__curbrk, ___brk_addr)
- LEAF(brk)
- .regstk 1, 0, 0, 0
- DO_CALL(__NR_brk)
- cmp.ltu p6, p0 = ret0, in0
- addl r9 = @ltoff(__curbrk), gp
- ;;
- ld8 r9 = [r9]
- (p6) mov ret0 = ENOMEM
- (p6) br.cond.spnt.few __syscall_error
- ;;
- st8 [r9] = ret0
- mov ret0 = 0
- ret
- END(brk)
- libc_hidden_def(brk)
|