Welcome to the new compat layout.
This commit is contained in:
parent
147db157f7
commit
ab2a637b34
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.inc,v 1.16 2003/11/06 02:28:00 christos Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.17 2006/03/11 19:34:40 christos Exp $
|
||||
|
||||
KMINCLUDES= arch/ns32k/SYS.h
|
||||
KMSRCS= bcmp.S bcopy.S bzero.S ffs.S \
|
||||
@ -10,4 +10,4 @@ LSRCS+= ${ASSRCS:S/S$/c/g:C/^./Lint_&/g}
|
||||
DPSRCS+=${ASSRCS:S/S$/c/g:C/^./Lint_&/g}
|
||||
CLEANFILES+=${ASSRCS:S/S$/c/g:C/^./Lint_&/g}
|
||||
|
||||
SRCS+= __sigaction14_sigtramp.c __sigtramp1.S __sigtramp2.S
|
||||
SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
|
||||
|
@ -1,11 +1,9 @@
|
||||
# $NetBSD: Makefile.inc,v 1.23 2005/04/15 22:39:11 kleink Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.24 2006/03/11 19:34:40 christos Exp $
|
||||
|
||||
# objects built from assembler sources (need lint stubs)
|
||||
ASSRCS+=alloca.S fabs.S modf.S
|
||||
|
||||
ASSRCS+=__setjmp14.S
|
||||
ASSRCS+=_setjmp.S
|
||||
ASSRCS+=__sigsetjmp14.S
|
||||
|
||||
ASSRCS+=resumecontext.S swapcontext.S
|
||||
|
||||
|
@ -1,78 +0,0 @@
|
||||
/* $NetBSD: __setjmp14.S,v 1.4 2004/12/14 11:14:45 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
#include <machine/jmpbuf.h>
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: __setjmp14.S,v 1.4 2004/12/14 11:14:45 simonb Exp $")
|
||||
#endif
|
||||
|
||||
ENTRY(__setjmp14)
|
||||
/* Get signal mask. */
|
||||
addr JMP_BUF_SIGMASK(4(sp)),tos
|
||||
movqd 0,tos
|
||||
movqd 0,tos
|
||||
bsr _C_LABEL(__sigprocmask14)
|
||||
adjspd -12
|
||||
|
||||
movd 4(sp),r2 /* jmp_buf */
|
||||
|
||||
movd 0(sp),JMP_BUF_PC(r2) /* pc of caller */
|
||||
sprd sp,JMP_BUF_SP(r2)
|
||||
sprd fp,JMP_BUF_FP(r2)
|
||||
sprd sb,JMP_BUF_SB(r2)
|
||||
movd r3,JMP_BUF_R3(r2) /* save registers r3-r7 */
|
||||
movd r4,JMP_BUF_R4(r2)
|
||||
movd r5,JMP_BUF_R5(r2)
|
||||
movd r6,JMP_BUF_R6(r2)
|
||||
movd r7,JMP_BUF_R7(r2)
|
||||
|
||||
movqd 0,r0
|
||||
ret 0
|
||||
|
||||
ENTRY(__longjmp14)
|
||||
/* Restore signal mask. */
|
||||
movqd 0,tos
|
||||
addr JMP_BUF_SIGMASK(8(sp)),tos
|
||||
movqd 3,tos /* SIG_SETMASK */
|
||||
bsr _C_LABEL(__sigprocmask14)
|
||||
adjspd -12
|
||||
|
||||
movd 4(sp),r2 /* jmp_buf */
|
||||
movd 8(sp),r0 /* return value */
|
||||
|
||||
lprd sp,JMP_BUF_SP(r2)
|
||||
lprd fp,JMP_BUF_FP(r2)
|
||||
lprd sb,JMP_BUF_SB(r2)
|
||||
movd JMP_BUF_R3(r2),r3 /* load registers r3-r7 */
|
||||
movd JMP_BUF_R4(r2),r4
|
||||
movd JMP_BUF_R5(r2),r5
|
||||
movd JMP_BUF_R6(r2),r6
|
||||
movd JMP_BUF_R7(r2),r7
|
||||
movd JMP_BUF_PC(r2),0(sp) /* patch return pc */
|
||||
|
||||
cmpqd 0,r0
|
||||
bne 0f
|
||||
movqd 1,r0
|
||||
0: ret 0
|
@ -1,93 +0,0 @@
|
||||
/* $NetBSD: __sigsetjmp14.S,v 1.4 2004/12/14 11:14:45 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*
|
||||
* 05-Aug-94 Matthias Pfaller (leo@marco.de)
|
||||
* Converted to sigsetjmp.S from setjmp.S
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
#include <machine/jmpbuf.h>
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: __sigsetjmp14.S,v 1.4 2004/12/14 11:14:45 simonb Exp $")
|
||||
#endif
|
||||
|
||||
ENTRY(__sigsetjmp14)
|
||||
movd 4(sp),r2 /* jmp_buf */
|
||||
|
||||
cmpqd 0,8(sp) /* save signal mask? */
|
||||
sned JMP_BUF_SIGMASK+16(r2)
|
||||
beq 1f /* no, skip */
|
||||
|
||||
/* Get signal mask. */
|
||||
addr JMP_BUF_SIGMASK(r2),tos
|
||||
movqd 0,tos
|
||||
movqd 0,tos
|
||||
bsr _C_LABEL(__sigprocmask14)
|
||||
adjspd -12
|
||||
|
||||
movd 4(sp),r2 /* jmp_buf */
|
||||
|
||||
1: movd 0(sp),JMP_BUF_PC(r2) /* pc of caller */
|
||||
sprd sp,JMP_BUF_SP(r2)
|
||||
sprd fp,JMP_BUF_FP(r2)
|
||||
sprd sb,JMP_BUF_SB(r2)
|
||||
movd r3,JMP_BUF_R3(r2) /* save registers r3-r7 */
|
||||
movd r4,JMP_BUF_R4(r2)
|
||||
movd r5,JMP_BUF_R5(r2)
|
||||
movd r6,JMP_BUF_R6(r2)
|
||||
movd r7,JMP_BUF_R7(r2)
|
||||
|
||||
movqd 0,r0
|
||||
ret 0
|
||||
|
||||
ENTRY(__siglongjmp14)
|
||||
movd 4(sp),r2 /* jmp_buf */
|
||||
|
||||
cmpqd 0,JMP_BUF_SIGMASK+16(r2) /* restore signal mask? */
|
||||
beq 1f /* no, skip */
|
||||
|
||||
/* Restore signal mask. */
|
||||
movqd 0,tos
|
||||
addr JMP_BUF_SIGMASK(r2),tos
|
||||
movqd 3,tos /* SIG_SETMASK */
|
||||
bsr _C_LABEL(__sigprocmask14)
|
||||
adjspd -12
|
||||
|
||||
movd 4(sp),r2 /* jmp_buf */
|
||||
|
||||
1: movd 8(sp),r0 /* return value */
|
||||
|
||||
lprd sp,JMP_BUF_SP(r2)
|
||||
lprd fp,JMP_BUF_FP(r2)
|
||||
lprd sb,JMP_BUF_SB(r2)
|
||||
movd JMP_BUF_R3(r2),r3 /* load registers r3-r7 */
|
||||
movd JMP_BUF_R4(r2),r4
|
||||
movd JMP_BUF_R5(r2),r5
|
||||
movd JMP_BUF_R6(r2),r6
|
||||
movd JMP_BUF_R7(r2),r7
|
||||
movd JMP_BUF_PC(r2),0(sp) /* patch return pc */
|
||||
|
||||
cmpqd 0,r0
|
||||
bne 2f
|
||||
movqd 1,r0
|
||||
2: ret 0
|
@ -1,52 +0,0 @@
|
||||
/* $NetBSD: Ovfork.S,v 1.4 1998/12/02 19:29:57 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#include "SYS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: Ovfork.S,v 1.4 1998/12/02 19:29:57 thorpej Exp $")
|
||||
#endif
|
||||
|
||||
WARN_REFERENCES(vfork, \
|
||||
"warning: reference to compatibility vfork(); include <unistd.h> for correct reference")
|
||||
|
||||
/*
|
||||
* r0 = pid of child in parent / pid of parent in child
|
||||
* r1 = 0 in parent, 1 in child
|
||||
*
|
||||
* trickery here, due to keith sklower, uses ret to clear the stack,
|
||||
* and then returns with a jump indirect, since only one person can return
|
||||
* with a ret off this stack... we do the ret before we vfork!
|
||||
* (This is not really true for NetBSD. NetBSD's vfork creates a new
|
||||
* vm context for the child).
|
||||
*/
|
||||
ENTRY(vfork)
|
||||
movd tos,r2
|
||||
SYSTRAP(vfork)
|
||||
bcc 0f
|
||||
movd r2,tos
|
||||
br _ASM_LABEL(cerror)
|
||||
0: cmpqd 0,r1
|
||||
beq 0f
|
||||
movqd 0,r0
|
||||
0: jump 0(r2)
|
@ -1,42 +0,0 @@
|
||||
/* $NetBSD: __semctl.S,v 1.1 1999/08/25 05:09:30 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
|
||||
* NASA Ames Research Center.
|
||||
*
|
||||
* 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 "SYS.h"
|
||||
|
||||
PSEUDO(__semctl,compat_14___semctl)
|
@ -1,36 +0,0 @@
|
||||
/* $NetBSD: __sigreturn14.S,v 1.2 2004/03/26 20:35:37 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#ifdef GPROF
|
||||
/*
|
||||
* We must preserve the state of the registers as the user has set them up.
|
||||
*/
|
||||
# define _SAVELIST r0,r1,r2
|
||||
#endif
|
||||
#include "SYS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: __sigreturn14.S,v 1.2 2004/03/26 20:35:37 drochner Exp $")
|
||||
#endif
|
||||
|
||||
PSEUDO(__sigreturn14,compat_16___sigreturn14)
|
@ -1,57 +0,0 @@
|
||||
/* $NetBSD: __sigtramp1.S,v 1.2 2004/03/26 20:35:37 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Jason R. Thorpe and Simon Burge.
|
||||
*
|
||||
* 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 "SYS.h"
|
||||
|
||||
/*
|
||||
* The ns32k signal trampoline is invoked only to return from
|
||||
* the signal; the kernel calls the signal handler directly.
|
||||
*
|
||||
* On entry, stack looks like:
|
||||
*
|
||||
* sigcontext structure [12]
|
||||
* pointer to sigcontext structure [8]
|
||||
* signal specific code [4]
|
||||
* sp-> signal number [0]
|
||||
*/
|
||||
ENTRY_NOPROFILE(__sigtramp_sigcontext_1)
|
||||
addr 12(sp),4(sp) /* get pointer to sigcontext */
|
||||
/* and put it in argument slot */
|
||||
SYSTRAP(compat_16___sigreturn14) /* call sigreturn */
|
||||
movd r0,4(sp) /* exit with errno */
|
||||
SYSTRAP(exit) /* if sigreturn failed */
|
@ -1,45 +0,0 @@
|
||||
/* $NetBSD: msgctl.S,v 1.1 1999/08/25 05:09:30 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
|
||||
* NASA Ames Research Center.
|
||||
*
|
||||
* 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 "SYS.h"
|
||||
|
||||
WARN_REFERENCES(msgctl, \
|
||||
"warning: reference to compatibility msgctl(); include <sys/msg.h> for correct reference")
|
||||
|
||||
PSEUDO(msgctl,compat_14_msgctl)
|
@ -1,45 +0,0 @@
|
||||
/* $NetBSD: shmctl.S,v 1.1 1999/08/25 05:09:30 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
|
||||
* NASA Ames Research Center.
|
||||
*
|
||||
* 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 "SYS.h"
|
||||
|
||||
WARN_REFERENCES(shmctl, \
|
||||
"warning: reference to compatibility shmctl(); include <sys/shm.h> for correct reference")
|
||||
|
||||
PSEUDO(shmctl,compat_14_shmctl)
|
@ -1,45 +0,0 @@
|
||||
/* $NetBSD: sigaction.S,v 1.2 1998/12/02 01:01:04 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
|
||||
* NASA Ames Research Center.
|
||||
*
|
||||
* 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 "SYS.h"
|
||||
|
||||
WARN_REFERENCES(sigaction, \
|
||||
"warning: reference to compatibility sigaction(); include <signal.h> for correct reference")
|
||||
|
||||
PSEUDO(sigaction,compat_13_sigaction13)
|
@ -1,36 +0,0 @@
|
||||
/* $NetBSD: sigpending.S,v 1.5 1998/12/02 01:01:04 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#include "SYS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: sigpending.S,v 1.5 1998/12/02 01:01:04 thorpej Exp $")
|
||||
#endif
|
||||
|
||||
WARN_REFERENCES(sigpending, \
|
||||
"warning: reference to compatibility sigpending(); include <signal.h> for correct reference")
|
||||
|
||||
_SYSCALL(sigpending,compat_13_sigpending13)
|
||||
movd r0,0(S_ARG1) /* store old mask */
|
||||
movqd 0,r0
|
||||
ret 0
|
@ -1,48 +0,0 @@
|
||||
/* $NetBSD: sigprocmask.S,v 1.5 1998/12/02 01:01:04 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#include "SYS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: sigprocmask.S,v 1.5 1998/12/02 01:01:04 thorpej Exp $")
|
||||
#endif
|
||||
|
||||
WARN_REFERENCES(sigprocmask, \
|
||||
"warning: reference to compatibility sigprocmask(); include <signal.h> for correct reference")
|
||||
|
||||
ENTRY(sigprocmask)
|
||||
movd S_ARG1,r1 /* fetch new sigset pointer */
|
||||
cmpqd 0,r1 /* check new sigset pointer */
|
||||
bne 0f /* if not null, indirect */
|
||||
/* movqd 0,S_ARG1 /* null mask pointer: block empty set */
|
||||
movqd 1,S_ARG0 /* SIG_BLOCK */
|
||||
br 1f
|
||||
0: movd 0(r1),S_ARG1 /* fetch indirect to new mask arg */
|
||||
1: SYSTRAP(compat_13_sigprocmask13)
|
||||
bcs _ASM_LABEL(cerror)
|
||||
movd S_ARG2,r1 /* fetch old mask requested */
|
||||
cmpqd 0,r1 /* test if old mask requested */
|
||||
beq 2f
|
||||
movd r0,0(r1) /* store old mask */
|
||||
2: movqd 0,r0
|
||||
ret 0
|
@ -1,39 +0,0 @@
|
||||
/* $NetBSD: sigreturn.S,v 1.9 2004/03/26 22:15:03 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#ifdef GPROF
|
||||
/*
|
||||
* We must preserve the state of the registers as the user has set them up.
|
||||
*/
|
||||
# define _SAVELIST r0,r1,r2
|
||||
#endif
|
||||
#include "SYS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: sigreturn.S,v 1.9 2004/03/26 22:15:03 drochner Exp $")
|
||||
#endif
|
||||
|
||||
WARN_REFERENCES(sigreturn, \
|
||||
"warning: reference to compatibility sigreturn()")
|
||||
|
||||
PSEUDO(sigreturn,compat_13_sigreturn13)
|
@ -1,38 +0,0 @@
|
||||
/* $NetBSD: sigsuspend.S,v 1.5 1998/12/02 01:01:04 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#include "SYS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: sigsuspend.S,v 1.5 1998/12/02 01:01:04 thorpej Exp $")
|
||||
#endif
|
||||
|
||||
WARN_REFERENCES(sigsuspend, \
|
||||
"warning: reference to compatibility sigsuspend(); include <signal.h> for correct reference")
|
||||
|
||||
ENTRY(sigsuspend)
|
||||
movd 0(S_ARG0),S_ARG0 /* indirect to mask arg */
|
||||
SYSTRAP(compat_13_sigsuspend13)
|
||||
bcs _ASM_LABEL(cerror)
|
||||
movqd 0,r0 /* shouldn t happen */
|
||||
ret 0
|
Loading…
Reference in New Issue
Block a user