122347Spst/*- 222347Spst * Copyright (c) 2002 Jake Burkholder. 329964Sache * All rights reserved. 492906Smarkm * 522347Spst * Redistribution and use in source and binary forms, with or without 622347Spst * modification, are permitted provided that the following conditions 722347Spst * are met: 822347Spst * 1. Redistributions of source code must retain the above copyright 922347Spst * notice, this list of conditions and the following disclaimer. 1022347Spst * 2. Redistributions in binary form must reproduce the above copyright 1122347Spst * notice, this list of conditions and the following disclaimer in the 1222347Spst * documentation and/or other materials provided with the distribution. 1322347Spst * 1422347Spst * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1522347Spst * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1622347Spst * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1722347Spst * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1822347Spst * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1922347Spst * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2022347Spst * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2122347Spst * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2222347Spst * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2322347Spst * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2422347Spst * SUCH DAMAGE. 2522347Spst */ 2622347Spst 2722347Spst#include <machine/asm.h> 2822347Spst__FBSDID("$FreeBSD$"); 2922347Spst 3022347Spst#include "SYS.h" 3122347Spst 3222347Spst_SYSENTRY(sigaction) 3322347Spst PIC_PROLOGUE(%o3, %o4) 3422347Spst SET(sigcode_installed, %o4, %o3) 3522347Spst lduw [%o3], %o4 3622347Spst brnz,a,pt %o4, 1f 3722347Spst nop 3822347Spst save %sp, -CCFSZ, %sp 3922347Spst call __sparc_sigtramp_setup 4022347Spst nop 4122347Spst restore 4222347Spst mov 1, %o4 4322347Spst stw %o4, [%o3] 4422347Spst1: _SYSCALL(sigaction) 4522347Spst retl 4622347Spst nop 4722347Spst_SYSEND(sigaction) 4822347Spst 4922347Spst .comm sigcode_installed, 4, 4 5022347Spst