1 /* $NetBSD: sbrk.S,v 1.8 2000/06/26 06:25:44 kleink Exp $ */
5 .globl _C_LABEL(__curbrk)
9 WEAK_ALIAS(sbrk, _sbrk)
20 bl _GLOBAL_OFFSET_TABLE_@local-4
23 lwz %r5,_C_LABEL(__curbrk)@got(%r5)
26 lis %r5,_C_LABEL(__curbrk)@ha
27 lwz %r6,_C_LABEL(__curbrk)@l(%r5) # r6 = old break
30 mr %r7,%r3 # r7 = new break
34 mr %r3,%r6 # set return value
38 stw %r7,_C_LABEL(__curbrk)@l(%r5) # record new break
42 b PIC_PLT(_C_LABEL(__cerror))