Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/sparc64/gen rename the files in gen like we di...



details:   https://anonhg.NetBSD.org/src/rev/1aa54806fca3
branches:  trunk
changeset: 585096:1aa54806fca3
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 16 17:15:38 2005 +0000

description:
rename the files in gen like we did for i386.

diffstat:

 lib/libc/arch/sparc64/gen/Makefile.inc    |    6 +-
 lib/libc/arch/sparc64/gen/__longjmp14.c   |  105 -----------------------
 lib/libc/arch/sparc64/gen/__setjmp14.S    |  136 ------------------------------
 lib/libc/arch/sparc64/gen/__sigsetjmp14.S |  108 -----------------------
 lib/libc/arch/sparc64/gen/longjmp.c       |  105 +++++++++++++++++++++++
 lib/libc/arch/sparc64/gen/setjmp.S        |  136 ++++++++++++++++++++++++++++++
 lib/libc/arch/sparc64/gen/sigsetjmp.S     |  108 +++++++++++++++++++++++
 7 files changed, 352 insertions(+), 352 deletions(-)

diffs (truncated from 743 to 300 lines):

diff -r f72b7e50a26e -r 1aa54806fca3 lib/libc/arch/sparc64/gen/Makefile.inc
--- a/lib/libc/arch/sparc64/gen/Makefile.inc    Sun Oct 16 16:35:44 2005 +0000
+++ b/lib/libc/arch/sparc64/gen/Makefile.inc    Sun Oct 16 17:15:38 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.16 2005/10/16 04:41:34 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.17 2005/10/16 17:15:38 christos Exp $
 
 SRCS+= fabs.S modf.S
 SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \
@@ -18,9 +18,9 @@
 SRCS+= fpclassifyl.c isfinitel.c isinfl.c isnanl.c signbitl.c
 
 SRCS+= bswap16.c bswap32.c bswap64.c
-SRCS+= __setjmp14.S
+SRCS+= setjmp.S
 SRCS+= _setjmp.S
-SRCS+= __sigsetjmp14.S __longjmp14.c
+SRCS+= sigsetjmp.S longjmp.c
 
 SRCS+= makecontext.c resumecontext.c _lwp.c swapcontext.S
 
diff -r f72b7e50a26e -r 1aa54806fca3 lib/libc/arch/sparc64/gen/__longjmp14.c
--- a/lib/libc/arch/sparc64/gen/__longjmp14.c   Sun Oct 16 16:35:44 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,105 +0,0 @@
-/*     $NetBSD: __longjmp14.c,v 1.5 2005/09/13 09:52:17 martin Exp $   */
-
-/*-
- * Copyright (c) 2003 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Christian Limpach.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *        This product includes software developed by the NetBSD
- *        Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- *    contributors may be used to endorse or promote products derived
- *    from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "namespace.h"
-#include <sys/types.h>
-#include <ucontext.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-
-#define __LIBC12_SOURCE__
-#include <setjmp.h>
-#include <compat/include/setjmp.h>
-
-typedef struct {
-       __greg_t        __glob[5];
-} __jmp_buf_regs_t;
-
-void
-__longjmp14(jmp_buf env, int val)
-{
-       struct sigcontext *sc = (void *)env;
-       __jmp_buf_regs_t *r = (void *)&sc[1];
-       ucontext_t uc;
-
-       /* Ensure non-zero SP */
-       if (sc->sc_sp == 0)
-               goto err;
-
-       /*
-        * Set _UC_CPU. No FPU data saved, so we can't restore
-        * that. Set _UC_{SET,CLR}STACK according to SS_ONSTACK
-        */
-       memset(&uc, 0, sizeof(uc));
-       uc.uc_flags = _UC_CPU | (sc->sc_onstack ? _UC_SETSTACK : _UC_CLRSTACK);
-
-       /*
-        * Set the signal mask - this is a weak symbol, so don't use
-        * _UC_SIGMASK in the mcontext, libpthread might override sigprocmask.
-        */
-       sigprocmask(SIG_SETMASK, &sc->sc_mask, NULL);
-
-       /* Fill other registers */
-       uc.uc_mcontext.__gregs[_REG_CCR] = sc->sc_tstate;
-       uc.uc_mcontext.__gregs[_REG_PC] = sc->sc_pc;
-       uc.uc_mcontext.__gregs[_REG_nPC] = sc->sc_npc;
-       uc.uc_mcontext.__gregs[_REG_G1] = sc->sc_g1;
-       uc.uc_mcontext.__gregs[_REG_G2] = sc->sc_o0;
-       uc.uc_mcontext.__gregs[_REG_G3] = r->__glob[0];
-       uc.uc_mcontext.__gregs[_REG_G4] = r->__glob[1];
-       uc.uc_mcontext.__gregs[_REG_G5] = r->__glob[2];
-       uc.uc_mcontext.__gregs[_REG_G6] = r->__glob[3];
-       uc.uc_mcontext.__gregs[_REG_G7] = r->__glob[4];
-       uc.uc_mcontext.__gregs[_REG_O6] = sc->sc_sp;
-
-       /* Make return value non-zero */
-       if (val == 0)
-               val = 1;
-
-       /* Save return value in context */
-       uc.uc_mcontext.__gregs[_REG_O0] = val;
-
-       setcontext(&uc);
-
- err:
-       longjmperror();
-       abort();
-       /* NOTREACHED */
-}
diff -r f72b7e50a26e -r 1aa54806fca3 lib/libc/arch/sparc64/gen/__setjmp14.S
--- a/lib/libc/arch/sparc64/gen/__setjmp14.S    Sun Oct 16 16:35:44 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,136 +0,0 @@
-/*     $NetBSD: __setjmp14.S,v 1.8 2004/03/23 19:07:40 pk Exp $        */
-
-/*
- * Copyright (c) 1992, 1993
- *     The Regents of the University of California.  All rights reserved.
- *
- * This software was developed by the Computer Systems Engineering group
- * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
- * contributed to Berkeley.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: Header: setjmp.s,v 1.2 92/06/25 03:18:43 torek Exp
- */
-
-#define _LOCORE
-#include <machine/asm.h>
-#include <machine/frame.h>
-#if defined(LIBC_SCCS) && !defined(lint)
-#if 0
-       .asciz "@(#)setjmp.s    8.1 (Berkeley) 6/4/93"
-#else
-       RCSID("$NetBSD: __setjmp14.S,v 1.8 2004/03/23 19:07:40 pk Exp $")
-#endif
-#endif /* LIBC_SCCS and not lint */
-
-/*
- * C library -- setjmp
- *
- *     __longjmp14(a,v)
- * will generate a "return(v)" from
- * the last call to
- *     setjmp(a)
- * by restoring registers from the stack,
- * and a struct sigcontext, see <signal.h>
- */
-
-#include "SYS.h"
-
-       .register %g2,#ignore
-       .register %g3,#ignore
-       .register %g6,#ignore
-
-ENTRY(__setjmp14)
-       save    %sp, -CC64FSZ, %sp
-
-       /* save globals into locals */
-       mov     %g1, %l1
-       mov     %g2, %l2
-       mov     %g3, %l3
-       mov     %g4, %l4
-       mov     %g5, %l5
-       mov     %g6, %l6
-       mov     %g7, %l7
-
-#ifdef PIC
-       PIC_PROLOGUE(%i1, %o4)
-#endif
-
-       /* now get sigmask and onstack flag */
-       add     %i0, 0x38, %o2          /* build sigcontext in [%o2]->sc.sc_mask */
-       mov     1, %o0                  /* SIG_BLOCK */
-                                       /* sigprocmask(SIG_BLOCK, (sigset_t *)NULL, (sigset_t *)a) */
-#ifdef PIC
-#ifdef BIGPIC
-       set     _C_LABEL(__sigprocmask14), %o4
-       ldx     [%i1 + %o4], %g2
-#else
-       ldx     [%i1 + _C_LABEL(__sigprocmask14)], %g2
-#endif
-       call    %g2
-#else
-       call    _C_LABEL(__sigprocmask14)
-#endif
-        clr    %o1
-
-       clr     %o0                     /* sigstack(NULL, &foo) */
-#ifdef PIC
-#ifdef BIGPIC
-       set     _C_LABEL(__sigaltstack14), %o4
-       ldx     [%i1 + %o4], %g2
-#else
-       ldx     [%i1 + _C_LABEL(__sigaltstack14)], %g2
-#endif
-       call    %g2
-#else
-       call    _C_LABEL(__sigaltstack14)
-#endif
-        add    %i0, 8, %o1             /* (foo being part of the sigcontext we're overwriting) */
-       
-       lduw    [%i0 + 8 + 0x10], %o0   /* foo.ss_flags */
-       and     %o0, 1, %o1             /* onstack = foo.ss_flags & SS_ONSTACK; */
-       st      %o1, [%i0 + 0x00]       /* sc.sc_onstack = current onstack; */
-
-       /* store essential state */
-       stx     %fp, [%i0 + 0x08]       /* sc.sc_sp = sp */
-       add     %i7, 8, %o0
-       stx     %o0, [%i0 + 0x10]       /* sc.sc_pc = return_pc */
-       add     %i7, 12, %o0
-       stx     %o0, [%i0 + 0x18]       /* sc.sc_npc = return_pc + 4 */
-       stx     %g0, [%i0 + 0x20]       /* sc.sc_tstate = (clean ccr) */
-       stx     %l1, [%i0 + 0x28]       /* sc.sc_g1 */
-       stx     %l2, [%i0 + 0x30]       /* sc.sc_o0, set in longjmp, use as %g2 */
-       /* 0x38 */                      /* sc.sc_mask was already saved above */
-
-       /* save additional registers needed to fill a complete mcontext */
-       stx     %l3, [%i0 + 0x40]
-       stx     %l4, [%i0 + 0x48]
-       stx     %l5, [%i0 + 0x50]
-       stx     %l6, [%i0 + 0x58]
-       stx     %l7, [%i0 + 0x60]
-
-       ret                             /* return 0 */
-        restore %g0, 0, %o0
diff -r f72b7e50a26e -r 1aa54806fca3 lib/libc/arch/sparc64/gen/__sigsetjmp14.S
--- a/lib/libc/arch/sparc64/gen/__sigsetjmp14.S Sun Oct 16 16:35:44 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-/*     $NetBSD: __sigsetjmp14.S,v 1.7 2004/01/19 18:17:21 martin Exp $ */
-/*
- * Copyright (c) 1995 Paul Kranenburg
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by Paul Kranenburg.
- * 4. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY



Home | Main Index | Thread Index | Old Index