1 /* $NetBSD: sbrk.S,v 1.5 2014/08/23 02:24:22 matt Exp $ */
5 .hidden _C_LABEL(__curbrk)
6 .globl _C_LABEL(__curbrk)
9 WEAK_ALIAS(sbrk, _sbrk)
13 addis %r8,%r2,_C_LABEL(__curbrk)@toc@ha
14 ldptru %r6,_C_LABEL(__curbrk)@toc@l(%r8)
16 mr %r7,%r3 # r7 = new break
17 _DOSYSCALL(break) # break(new_break)
19 mr %r3,%r6 # set return value
20 stptr %r7,0(%r8) # record new break