From 9e360dcc057030f1a5b06971af691f8d1687b635 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 14 Feb 2015 23:23:50 -0600 Subject: good by nios Get rid of NIOS support. We try to support NIOSII. --- libc/sysdeps/linux/nios/vfork.S | 51 ----------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 libc/sysdeps/linux/nios/vfork.S (limited to 'libc/sysdeps/linux/nios/vfork.S') diff --git a/libc/sysdeps/linux/nios/vfork.S b/libc/sysdeps/linux/nios/vfork.S deleted file mode 100644 index 603a07e83..000000000 --- a/libc/sysdeps/linux/nios/vfork.S +++ /dev/null @@ -1,51 +0,0 @@ -/* - * libc/sysdeps/linux/nios/vfork.S -- `vfork' syscall for linux/nios - * - * Copyright (C) 2004 Microtronix Datacom Ltd - * - * 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 Wentao Xu - */ - -#include -#include "NM_Macros.S" - -#ifndef __NR_vfork -#define __NR_vfork __NR_fork /* uClinux-2.0 only has fork which is vfork */ -#endif - - .text - .align 2 - .globl __vfork - .hidden __vfork - .type __vfork,@function -__vfork: - MOVIP %g1, __NR_vfork - trap 63 - - bgen %g1, 12 - not %g1 /* (unsigned long) -4096 */ - cmp %o0, %g1 - skps cc_hi - jmp %o7 - nop - -fix_errno: - neg %o0 - save %sp, -16 - MOVIA %g1, __errno_location@h - call %g1 - nop - st [%o0], %i0 /* store errno */ - - xor %i0, %i0 - subi %i0, 1 /* retval=-1 */ - ret - restore - -.size __vfork,.-__vfork -weak_alias(__vfork,vfork) -libc_hidden_def(vfork) -- cgit v1.2.3