Annotation of sys/arch/alpha/alpha/osf1_locore.s, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: osf1_locore.s,v 1.1 2000/08/12 20:10:31 ericj Exp $ */
! 2: /* $NetBSD$ */
! 3:
! 4: /*
! 5: * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
! 6: *
! 7: * Redistribution and use in source and binary forms, with or without
! 8: * modification, are permitted provided that the following conditions
! 9: * are met:
! 10: * 1. Redistributions of source code must retain the above copyright
! 11: * notice, this list of conditions and the following disclaimer.
! 12: * 2. Redistributions in binary form must reproduce the above copyright
! 13: * notice, this list of conditions and the following disclaimer in the
! 14: * documentation and/or other materials provided with the distribution.
! 15: * 3. All advertising materials mentioning features or use of this software
! 16: * must display the following acknowledgement:
! 17: * This product includes software developed by Christopher G. Demetriou
! 18: * for the NetBSD Project.
! 19: * 4. The name of the author may not be used to endorse or promote products
! 20: * derived from this software without specific prior written permission
! 21: *
! 22: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
! 23: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! 24: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
! 25: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
! 26: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
! 27: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
! 28: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
! 29: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! 30: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
! 31: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 32: */
! 33:
! 34: /*
! 35: * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
! 36: * All rights reserved.
! 37: *
! 38: * Author: Chris G. Demetriou
! 39: *
! 40: * Permission to use, copy, modify and distribute this software and
! 41: * its documentation is hereby granted, provided that both the copyright
! 42: * notice and this permission notice appear in all copies of the
! 43: * software, derivative works or modified versions, and any portions
! 44: * thereof, and that both notices appear in supporting documentation.
! 45: *
! 46: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
! 47: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
! 48: * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
! 49: *
! 50: * Carnegie Mellon requests users of this software to return to
! 51: *
! 52: * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
! 53: * School of Computer Science
! 54: * Carnegie Mellon University
! 55: * Pittsburgh PA 15213-3890
! 56: *
! 57: * any improvements or extensions that they make and grant Carnegie the
! 58: * rights to redistribute these changes.
! 59: */
! 60:
! 61: #include <machine/asm.h>
! 62:
! 63: #ifdef COMPAT_OSF1
! 64: #include <compat/osf1/osf1_syscall.h>
! 65: #endif
! 66:
! 67: /*
! 68: * OSF/1 signal trampoline code.
! 69: */
! 70:
! 71: #define OSF1_SYSCALLNUM(name) \
! 72: ___CONCAT(OSF1_SYS_,name)
! 73:
! 74: #define OSF1_CALLSYS_NOERROR(name) \
! 75: ldiq v0, OSF1_SYSCALLNUM(name); \
! 76: call_pal PAL_OSF1_callsys
! 77:
! 78: NESTED(osf1_sigcode,0,0,ra,0,0)
! 79: lda sp, -16(sp)
! 80: stq a2, 0(sp)
! 81: jsr ra, (t12)
! 82: ldq a0, 0(sp)
! 83: lda sp, 16(sp)
! 84: OSF1_CALLSYS_NOERROR(sigreturn)
! 85: mov v0, a0
! 86: OSF1_CALLSYS_NOERROR(exit)
! 87: XNESTED(osf1_esigcode,0)
! 88: END(osf1_sigcode)
CVSweb