Remove building with NOCRYPTO option
[minix.git] / lib / libc / arch / powerpc64 / sys / sbrk.S
blob541eb7ce30f6a35e869e822fba4a5ba049482231
1 /*      $NetBSD: sbrk.S,v 1.5 2014/08/23 02:24:22 matt Exp $    */
3 #include "SYS.h"
5         .hidden _C_LABEL(__curbrk)
6         .globl  _C_LABEL(__curbrk)
8 #ifdef WEAK_ALIAS
9 WEAK_ALIAS(sbrk, _sbrk)
10 #endif
12 ENTRY(_sbrk)
13         addis   %r8,%r2,_C_LABEL(__curbrk)@toc@ha
14         ldptru  %r6,_C_LABEL(__curbrk)@toc@l(%r8)
15         add     %r3,%r3,%r6
16         mr      %r7,%r3                         # r7 = new break
17         _DOSYSCALL(break)                       # break(new_break)
18         bso     1f
19         mr      %r3,%r6                         # set return value
20         stptr   %r7,0(%r8)                      # record new break
21         blr
23         BRANCH_TO_CERROR()
24 END(_sbrk)