xref: /freebsd-12.1/lib/libc/sparc64/sys/sigcode.S (revision 2ecf9f71)
162113699SJake Burkholder/*-
262113699SJake Burkholder * Copyright (c) 2002 Jake Burkholder.
362113699SJake Burkholder * All rights reserved.
462113699SJake Burkholder *
562113699SJake Burkholder * Redistribution and use in source and binary forms, with or without
662113699SJake Burkholder * modification, are permitted provided that the following conditions
762113699SJake Burkholder * are met:
862113699SJake Burkholder * 1. Redistributions of source code must retain the above copyright
962113699SJake Burkholder *    notice, this list of conditions and the following disclaimer.
1062113699SJake Burkholder * 2. Redistributions in binary form must reproduce the above copyright
1162113699SJake Burkholder *    notice, this list of conditions and the following disclaimer in the
1262113699SJake Burkholder *    documentation and/or other materials provided with the distribution.
1362113699SJake Burkholder *
1462113699SJake Burkholder * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1562113699SJake Burkholder * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1662113699SJake Burkholder * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1762113699SJake Burkholder * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1862113699SJake Burkholder * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1962113699SJake Burkholder * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2062113699SJake Burkholder * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2162113699SJake Burkholder * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2262113699SJake Burkholder * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2362113699SJake Burkholder * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2462113699SJake Burkholder * SUCH DAMAGE.
2562113699SJake Burkholder */
2662113699SJake Burkholder
2762113699SJake Burkholder#include <machine/asm.h>
2862113699SJake Burkholder__FBSDID("$FreeBSD$");
2962113699SJake Burkholder
3062113699SJake Burkholder#include "assym.s"
3162113699SJake Burkholder
32*2ecf9f71SJake BurkholderENTRY(__sigtramp)
3362113699SJake Burkholder	call	%o4
3462113699SJake Burkholder	 nop
3562113699SJake Burkholder	call	sigreturn
3662113699SJake Burkholder	 add	%sp, SPOFF + CCFSZ + SF_UC, %o0
3762113699SJake Burkholder	call	exit
3862113699SJake Burkholder	 mov	1, %o0
3962113699SJake Burkholder	illtrap
40*2ecf9f71SJake BurkholderEND(__sigtramp)
41