1*153a0d26Sdrochner/* $NetBSD: compat___sigtramp1.S,v 1.1 2005/09/16 18:21:19 drochner Exp $ */ 2*153a0d26Sdrochner 3*153a0d26Sdrochner/* 4*153a0d26Sdrochner * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. 5*153a0d26Sdrochner * All rights reserved. 6*153a0d26Sdrochner * 7*153a0d26Sdrochner * Author: Chris G. Demetriou 8*153a0d26Sdrochner * 9*153a0d26Sdrochner * Permission to use, copy, modify and distribute this software and 10*153a0d26Sdrochner * its documentation is hereby granted, provided that both the copyright 11*153a0d26Sdrochner * notice and this permission notice appear in all copies of the 12*153a0d26Sdrochner * software, derivative works or modified versions, and any portions 13*153a0d26Sdrochner * thereof, and that both notices appear in supporting documentation. 14*153a0d26Sdrochner * 15*153a0d26Sdrochner * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16*153a0d26Sdrochner * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17*153a0d26Sdrochner * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18*153a0d26Sdrochner * 19*153a0d26Sdrochner * Carnegie Mellon requests users of this software to return to 20*153a0d26Sdrochner * 21*153a0d26Sdrochner * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22*153a0d26Sdrochner * School of Computer Science 23*153a0d26Sdrochner * Carnegie Mellon University 24*153a0d26Sdrochner * Pittsburgh PA 15213-3890 25*153a0d26Sdrochner * 26*153a0d26Sdrochner * any improvements or extensions that they make and grant Carnegie the 27*153a0d26Sdrochner * rights to redistribute these changes. 28*153a0d26Sdrochner */ 29*153a0d26Sdrochner 30*153a0d26Sdrochner#include "SYS.h" 31*153a0d26Sdrochner 32*153a0d26Sdrochner/* 33*153a0d26Sdrochner * The Alpha signal trampoline is invoked only to return from 34*153a0d26Sdrochner * the signal; the kernel calls the signal handler directly. 35*153a0d26Sdrochner * 36*153a0d26Sdrochner * On entry, the stack looks like: 37*153a0d26Sdrochner * 38*153a0d26Sdrochner * sp-> sigcontext structure 39*153a0d26Sdrochner */ 40*153a0d26SdrochnerNESTED_NOPROFILE(__sigtramp_sigcontext_1,0,0,ra,0,0) 41*153a0d26Sdrochner mov sp, a0 /* get pointer to sigcontext */ 42*153a0d26Sdrochner CALLSYS_NOERROR(compat_16___sigreturn14) /* and call sigreturn() with it */ 43*153a0d26Sdrochner mov v0, a0 /* if that failed, get error code */ 44*153a0d26Sdrochner CALLSYS_NOERROR(exit) /* and call exit() with it */ 45*153a0d26SdrochnerEND(__sigtramp_sigcontext_1) 46