From aab39a094e0f1b69d661999e3298972ef3060aa0 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 25 Apr 2012 11:44:02 -0700 Subject: Delete everything under sysdeps/unix/sparc/ * sysdeps/unix/sparc/brk.S: Delete. * sysdeps/unix/sparc/dl-brk.S: Delete. * sysdeps/unix/sparc/pipe.S: Delete. * sysdeps/unix/sparc/sysdep.S: Delete. * sysdeps/unix/sparc/sysdep.h: Delete. * sysdeps/unix/sparc/vfork.S: Delete. * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG, SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define. * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Define. (JUMPTARGET): Remove. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include sysdeps/unix/sparc/sysdep.h (ENTRY, END): Remove. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise. --- sysdeps/unix/sparc/brk.S | 50 ------------------------ sysdeps/unix/sparc/dl-brk.S | 1 - sysdeps/unix/sparc/pipe.S | 29 -------------- sysdeps/unix/sparc/sysdep.S | 41 ------------------- sysdeps/unix/sparc/sysdep.h | 95 --------------------------------------------- sysdeps/unix/sparc/vfork.S | 34 ---------------- 6 files changed, 250 deletions(-) delete mode 100644 sysdeps/unix/sparc/brk.S delete mode 100644 sysdeps/unix/sparc/dl-brk.S delete mode 100644 sysdeps/unix/sparc/pipe.S delete mode 100644 sysdeps/unix/sparc/sysdep.S delete mode 100644 sysdeps/unix/sparc/sysdep.h delete mode 100644 sysdeps/unix/sparc/vfork.S (limited to 'sysdeps/unix/sparc') diff --git a/sysdeps/unix/sparc/brk.S b/sysdeps/unix/sparc/brk.S deleted file mode 100644 index 6b5d147242..0000000000 --- a/sysdeps/unix/sparc/brk.S +++ /dev/null @@ -1,50 +0,0 @@ -/* Copyright (C) 1993, 1995, 1997, 2005 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include - -#ifndef SYS_brk -#define SYS_brk 17 -#endif - -#ifndef C_SYMBOL_NAME -#define C_SYMBOL_NAME(name) _##name -#endif - -.data -.global C_SYMBOL_NAME(__curbrk) -C_LABEL(__curbrk) - .long C_SYMBOL_NAME(_end) - -.text -ENTRY (__brk) - add %o0, 7, %o0 - andn %o0, 7, %o0 - mov SYS_brk, %g1 - mov %o0, %o1 /* Save rounded value. */ - ta %g0 - bcs error - sethi %hi(C_SYMBOL_NAME(__curbrk)), %g1 - st %o1, [%g1 + %lo(C_SYMBOL_NAME(__curbrk))] - ret -error: sethi %hi(C_SYMBOL_NAME(errno)), %g1 - st %o0, [%g1 + %lo(C_SYMBOL_NAME(errno))] - sub %g0, 1, %o0 - retl - nop /* Fill the delay slot. */ - -weak_alias (__brk, brk) diff --git a/sysdeps/unix/sparc/dl-brk.S b/sysdeps/unix/sparc/dl-brk.S deleted file mode 100644 index eeb96544e3..0000000000 --- a/sysdeps/unix/sparc/dl-brk.S +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/unix/sparc/pipe.S b/sysdeps/unix/sparc/pipe.S deleted file mode 100644 index 2513641774..0000000000 --- a/sysdeps/unix/sparc/pipe.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (C) 1991, 1992, 1995, 1997, 2002 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include - -ENTRY (__pipe) - mov %o0, %o2 /* Save PIPEDES. */ -PSEUDO (__Spipe, pipe, 1) - st %o0, [%o2] /* PIPEDES[0] = %o0; */ - st %o1, [%o2 + 4] /* PIPEDES[1] = %o1; */ - retl /* return 0; */ - clr %o0 - -libc_hidden_def (__pipe) -weak_alias (__pipe, pipe) diff --git a/sysdeps/unix/sparc/sysdep.S b/sysdeps/unix/sparc/sysdep.S deleted file mode 100644 index 706a276a85..0000000000 --- a/sysdeps/unix/sparc/sysdep.S +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright (C) 1994, 1997, 2012 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#define _ERRNO_H -#include - -.global C_SYMBOL_NAME(errno) -.global syscall_error - -.text -.align 2 -__syscall_error: -#if defined (EWOULDBLOCK_sys) && EWOULDBLOCK_sys != EAGAIN - /* We translate the system's EWOULDBLOCK error into EAGAIN. - The GNU C library always defines EWOULDBLOCK==EAGAIN. - EWOULDBLOCK_sys is the original number. */ - cmp %o0, EWOULDBLOCK_sys - be,a notblock - mov EAGAIN, %o0 -#endif -notblock: /* Store the error code in `errno'. */ - sethi %hi(C_SYMBOL_NAME(errno)), %g1 - st %o0, [%g1 + %lo(C_SYMBOL_NAME(errno))] - /* And return -1. */ - retl - mov -1, %o0 diff --git a/sysdeps/unix/sparc/sysdep.h b/sysdeps/unix/sparc/sysdep.h deleted file mode 100644 index 1a095cc6c2..0000000000 --- a/sysdeps/unix/sparc/sysdep.h +++ /dev/null @@ -1,95 +0,0 @@ -/* Copyright (C) 1993, 1994, 1995, 1997, 2003, 2011, 2012 - Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include - -#ifdef __ASSEMBLER__ - -/* Since C identifiers are not normally prefixed with an underscore - on this system, the asm identifier `syscall_error' intrudes on the - C name space. Make sure we use an innocuous name. */ -#define syscall_error C_SYMBOL_NAME(__syscall_error) - -#define SPARC_PIC_THUNK(reg) \ - .ifndef __sparc_get_pc_thunk.reg; \ - .section .text.__sparc_get_pc_thunk.reg,"axG",@progbits,__sparc_get_pc_thunk.reg,comdat; \ - .align 32; \ - .weak __sparc_get_pc_thunk.reg; \ - .hidden __sparc_get_pc_thunk.reg; \ - .type __sparc_get_pc_thunk.reg, #function; \ -__sparc_get_pc_thunk.reg: \ - jmp %o7 + 8; \ - add %o7, %reg, %##reg; \ - .previous; \ - .endif; - -/* Even when v9 we use a call sequence instead of using "rd %pc" because - RDPC is extremely expensive and incurs a full pipeline flush. */ - -#define SETUP_PIC_REG(reg) \ - SPARC_PIC_THUNK(reg) \ - sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %##reg; \ - call __sparc_get_pc_thunk.reg; \ - or %##reg, %lo(_GLOBAL_OFFSET_TABLE_+4), %##reg; - -#define SETUP_PIC_REG_LEAF(reg, tmp) \ - SPARC_PIC_THUNK(reg) \ - sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %##reg; \ - mov %o7, %##tmp; \ - call __sparc_get_pc_thunk.reg; \ - or %##reg, %lo(_GLOBAL_OFFSET_TABLE_+4), %##reg; \ - mov %##tmp, %o7; - -#define ENTRY(name) \ - .global C_SYMBOL_NAME(name); \ - .type name,@function; \ - .align 4; \ - C_LABEL(name) - - -#define PSEUDO(name, syscall_name, args) \ - .global syscall_error; \ - ENTRY (name) \ - mov SYS_ify(syscall_name), %g1; \ - ta 0; \ - bcc 1f; \ - sethi %hi(syscall_error), %g1; \ - jmp %g1 + %lo(syscall_error); nop; \ -1: - -#define PSEUDO_NOERRNO(name, syscall_name, args) \ - .global syscall_error; \ - ENTRY (name) \ - mov SYS_ify(syscall_name), %g1; \ - ta 0 - -#define PSEUDO_ERRVAL(name, syscall_name, args) \ - .global syscall_error; \ - ENTRY (name) \ - mov SYS_ify(syscall_name), %g1; \ - ta 0 - -#define ret retl; nop -#define ret_NOERRNO retl; nop -#define ret_ERRVAL retl; nop -#define r0 %o0 -#define r1 %o1 -#define MOVE(x,y) mov x, y - -#endif /* __ASSEMBLER__ */ diff --git a/sysdeps/unix/sparc/vfork.S b/sysdeps/unix/sparc/vfork.S deleted file mode 100644 index c8c2d51df4..0000000000 --- a/sysdeps/unix/sparc/vfork.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1991, 92, 94, 95, 97, 99, 2002 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include - -#ifndef SYS_vfork -#define SYS_vfork 66 -#endif - -SYSCALL__ (vfork, 0) - /* %o1 is now 0 for the parent and 1 for the child. Decrement it to - make it -1 (all bits set) for the parent, and 0 (no bits set) - for the child. Then AND it with %o0, so the parent gets - %o0&-1==pid, and the child gets %o0&0==0. */ - sub %o1, 1, %o1 - retl - and %o0, %o1, %o0 -libc_hidden_def (__vfork) - -weak_alias (__vfork, vfork) -- cgit 1.4.1