summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/arc/sbrk.c
diff options
context:
space:
mode:
authorAnton Kolesov <Anton.Kolesov@synopsys.com>2015-10-23 21:23:40 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-11-12 14:03:05 +0100
commite945a19cb2c8530ce2ae2ba68ea454b5e4de8bdb (patch)
tree5398e30b2886411993410cac98cb522db836839a /newlib/libc/sys/arc/sbrk.c
parent332a6236a2f3d6b15523b10b7da3685b1c79f65d (diff)
downloadcygnal-e945a19cb2c8530ce2ae2ba68ea454b5e4de8bdb.tar.gz
cygnal-e945a19cb2c8530ce2ae2ba68ea454b5e4de8bdb.tar.bz2
cygnal-e945a19cb2c8530ce2ae2ba68ea454b5e4de8bdb.zip
Remove obsolete ARC system
ARC architecture specific files has been added ages ago in newlib/libc/sys, but with invention of libgloss those files should be moved from newlib to libgloss. newlib/ChangeLog: 2015-11-12 Anton Kolesov <Anton.Kolesov@synopsys.com> * configure.host: Remove ARC system. * libc/sys/configure: Likewise. * libc/sys/configure.in: Likewise. * libc/sys/arc/Makefile.am: Likewise. * libc/sys/arc/Makefile.in: Likewise. * libc/sys/arc/aclocal.m4: Likewise. * libc/sys/arc/configure: Likewise. * libc/sys/arc/configure.in: Likewise. * libc/sys/arc/crt0.S: Likewise. * libc/sys/arc/dummy.S: Likewise. * libc/sys/arc/isatty.c: Likewise. * libc/sys/arc/mem-layout.c: Likewise. * libc/sys/arc/sbrk.c: Likewise. * libc/sys/arc/sys/syscall.h: Likewise. * libc/sys/arc/syscalls.c: Likewise.
Diffstat (limited to 'newlib/libc/sys/arc/sbrk.c')
-rw-r--r--newlib/libc/sys/arc/sbrk.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/newlib/libc/sys/arc/sbrk.c b/newlib/libc/sys/arc/sbrk.c
deleted file mode 100644
index 9f863cded..000000000
--- a/newlib/libc/sys/arc/sbrk.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* sbrk support */
-
-/* The current plan is to have one sbrk handler for all cpus.
- Hence use `asm' for each global variable here to avoid the cpu prefix.
- We can't intrude on the user's namespace (another reason to use asm). */
-
-#include <sys/types.h>
-#include <sys/syscall.h>
-#include <errno.h>
-#include <stddef.h>
-
-/* These variables are publicly accessible for debugging purposes.
- The user is also free to set sbrk_size to something different.
- See mem-layout.c. */
-
-extern int sbrk_size asm ("sbrk_size");
-
-caddr_t sbrk_start asm ("sbrk_start");
-caddr_t sbrk_loc asm ("sbrk_loc");
-
-/*caddr_t _sbrk_r (struct _reent *, size_t) asm ("__sbrk_r");*/
-
-/* FIXME: We need a semaphore here. */
-
-caddr_t
-_sbrk_r (struct _reent *r, size_t nbytes)
-{
- caddr_t result;
-
- if (
- /* Ensure we don't underflow. */
- sbrk_loc + nbytes < sbrk_start
- /* Ensure we don't overflow. */
- || sbrk_loc + nbytes > sbrk_start + sbrk_size)
- {
- errno = ENOMEM;
- return ((caddr_t) -1);
- }
-
- result = sbrk_loc;
- sbrk_loc += nbytes;
- return result;
-}