2 * Copyright (C) 2013 Imagination Technologies Ltd.
4 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
9 #include <sys/syscall.h>
11 libc_hidden_proto(brk)
13 /* This must be initialized data because commons can't have aliases. */
14 void * __curbrk attribute_hidden = 0;
20 __asm__ __volatile__ ("MOV D1Re0,%2\n\t"
22 "SWITCH #0x440001\n\t"
25 : "r" (addr), "K" (__NR_brk)
26 : "D0Re0", "D1Re0", "D1Ar1");