__sparc_sigtramp_setup.c revision 105709
1145516Sdarrenr/*-
2145516Sdarrenr * Copyright (c) 2002 Jake Burkholder.
3145516Sdarrenr * All rights reserved.
4145516Sdarrenr *
5145516Sdarrenr * Redistribution and use in source and binary forms, with or without
6145516Sdarrenr * modification, are permitted provided that the following conditions
7145516Sdarrenr * are met:
8145516Sdarrenr * 1. Redistributions of source code must retain the above copyright
9145516Sdarrenr *    notice, this list of conditions and the following disclaimer.
10145516Sdarrenr * 2. Redistributions in binary form must reproduce the above copyright
11145516Sdarrenr *    notice, this list of conditions and the following disclaimer in the
12145516Sdarrenr *    documentation and/or other materials provided with the distribution.
13145516Sdarrenr *
14145516Sdarrenr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15145516Sdarrenr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16145516Sdarrenr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17145516Sdarrenr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18145516Sdarrenr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19145516Sdarrenr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20145516Sdarrenr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21145516Sdarrenr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22145516Sdarrenr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23145516Sdarrenr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24145516Sdarrenr * SUCH DAMAGE.
25145516Sdarrenr */
26145516Sdarrenr
27145516Sdarrenr#include <sys/cdefs.h>
28145516Sdarrenr__FBSDID("$FreeBSD: head/lib/libc/sparc64/sys/__sparc_sigtramp_setup.c 105709 2002-10-22 15:15:39Z jake $");
29145516Sdarrenr
30145516Sdarrenr#include <sys/types.h>
31145516Sdarrenr
32145516Sdarrenr#include <machine/utrap.h>
33145516Sdarrenr#include <machine/sysarch.h>
34145516Sdarrenr
35145516Sdarrenr#include <stdlib.h>
36153872Sguido
37145516Sdarrenrextern char __sigtramp[];
38145516Sdarrenr
39145516Sdarrenrstatic const struct sparc_sigtramp_install_args sia = { __sigtramp, NULL };
40145516Sdarrenr
41145516Sdarrenrvoid
42145516Sdarrenr__sparc_sigtramp_setup(void)
43145516Sdarrenr{
44145516Sdarrenr
45145516Sdarrenr	sysarch(SPARC_SIGTRAMP_INSTALL, &sia);
46145516Sdarrenr}
47145516Sdarrenr