summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/v850/clone.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-28 22:43:01 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-02 16:57:03 +0100
commit82b948ef8ffd2770fb09a8640dab82f3cb2af443 (patch)
tree17380b9ddad8301a6feadc66f18986074e5e5ce8 /libc/sysdeps/linux/v850/clone.c
parentbad1263e3316825b5ef0037ad7a897ae62a30d7e (diff)
remove deprecated architectures v850/i960
Both architectures are more or less deprecated. No Linux upstream support, no gcc support for uClinux.
Diffstat (limited to 'libc/sysdeps/linux/v850/clone.c')
-rw-r--r--libc/sysdeps/linux/v850/clone.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/libc/sysdeps/linux/v850/clone.c b/libc/sysdeps/linux/v850/clone.c
deleted file mode 100644
index d2e220823..000000000
--- a/libc/sysdeps/linux/v850/clone.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * libc/sysdeps/linux/v850/clone.c -- `clone' syscall for linux/v850
- *
- * Copyright (C) 2002,03 NEC Electronics Corporation
- * Copyright (C) 2002,03 Miles Bader <miles@gnu.org>
- *
- * This file is subject to the terms and conditions of the GNU Lesser
- * General Public License. See the file COPYING.LIB in the main
- * directory of this archive for more details.
- *
- * Written by Miles Bader <miles@gnu.org>
- */
-
-#include <errno.h>
-#include <sys/syscall.h>
-
-int
-clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg)
-{
- register unsigned long rval __asm__ (SYSCALL_RET) = -EINVAL;
-
- if (fn && child_stack)
- {
- register unsigned long syscall __asm__ (SYSCALL_NUM);
- register unsigned long arg0 __asm__ (SYSCALL_ARG0);
- register unsigned long arg1 __asm__ (SYSCALL_ARG1);
-
- /* Clone this thread. */
- arg0 = flags;
- arg1 = (unsigned long)child_stack;
- syscall = __NR_clone;
- __asm__ __volatile__ ("trap " SYSCALL_SHORT_TRAP
- : "=r" (rval), "=r" (syscall)
- : "1" (syscall), "r" (arg0), "r" (arg1)
- : SYSCALL_SHORT_CLOBBERS);
-
- if (rval == 0)
- /* In child thread, call FN and exit. */
- {
- arg0 = (*fn) (arg);
- syscall = __NR_exit;
- __asm__ __volatile__ ("trap " SYSCALL_SHORT_TRAP
- : "=r" (rval), "=r" (syscall)
- : "1" (syscall), "r" (arg0)
- : SYSCALL_SHORT_CLOBBERS);
- }
- }
-
- __syscall_return (int, rval);
-}