1102899Sjake/*- 2102899Sjake * Copyright (c) 2002 Jake Burkholder. 3102899Sjake * All rights reserved. 4102899Sjake * 5102899Sjake * Redistribution and use in source and binary forms, with or without 6102899Sjake * modification, are permitted provided that the following conditions 7102899Sjake * are met: 8102899Sjake * 1. Redistributions of source code must retain the above copyright 9102899Sjake * notice, this list of conditions and the following disclaimer. 10102899Sjake * 2. Redistributions in binary form must reproduce the above copyright 11102899Sjake * notice, this list of conditions and the following disclaimer in the 12102899Sjake * documentation and/or other materials provided with the distribution. 13102899Sjake * 14102899Sjake * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15102899Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16102899Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17102899Sjake * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18102899Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19102899Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20102899Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21102899Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22102899Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23102899Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24102899Sjake * SUCH DAMAGE. 25102899Sjake */ 26102899Sjake 27102899Sjake#include <machine/asm.h> 28102899Sjake__FBSDID("$FreeBSD: releng/11.0/lib/libc/sparc64/sys/sigaction1.S 278870 2015-02-16 22:13:03Z marius $"); 29102899Sjake 30102899Sjake#include "SYS.h" 31102899Sjake 32278870Smarius WEAK_REFERENCE(__sys_sigaction, _sigaction) 33278870SmariusENTRY(__sys_sigaction) 34102899Sjake PIC_PROLOGUE(%o3, %o4) 35102899Sjake SET(sigcode_installed, %o4, %o3) 36102899Sjake lduw [%o3], %o4 37102899Sjake brnz,a,pt %o4, 1f 38102899Sjake nop 39102899Sjake save %sp, -CCFSZ, %sp 40102899Sjake call __sparc_sigtramp_setup 41102899Sjake nop 42102899Sjake restore 43102899Sjake mov 1, %o4 44102899Sjake stw %o4, [%o3] 45102899Sjake1: _SYSCALL(sigaction) 46102899Sjake retl 47102899Sjake nop 48278870SmariusEND(__sys_sigaction) 49102899Sjake 50102899Sjake .comm sigcode_installed, 4, 4 51