sysarch.h revision 124296
1145519Sdarrenr/*-
2145510Sdarrenr * Copyright (c) 1993 The Regents of the University of California.
3170268Sdarrenr * All rights reserved.
4255332Scy *
5255332Scy * Redistribution and use in source and binary forms, with or without
6255332Scy * modification, are permitted provided that the following conditions
7255332Scy * are met:
8255332Scy * 1. Redistributions of source code must retain the above copyright
9255332Scy *    notice, this list of conditions and the following disclaimer.
10170268Sdarrenr * 2. Redistributions in binary form must reproduce the above copyright
11145510Sdarrenr *    notice, this list of conditions and the following disclaimer in the
12145510Sdarrenr *    documentation and/or other materials provided with the distribution.
13255332Scy * 3. All advertising materials mentioning features or use of this software
14255332Scy *    must display the following acknowledgement:
15255332Scy *	This product includes software developed by the University of
16255332Scy *	California, Berkeley and its contributors.
17145510Sdarrenr * 4. Neither the name of the University nor the names of its contributors
18145510Sdarrenr *    may be used to endorse or promote products derived from this software
19145510Sdarrenr *    without specific prior written permission.
20145510Sdarrenr *
21145510Sdarrenr * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22272986Scy * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23145510Sdarrenr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24255332Scy * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25255332Scy * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26255332Scy * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27255332Scy * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28255332Scy * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29272985Scy * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30272985Scy * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31272985Scy * SUCH DAMAGE.
32272985Scy *
33255332Scy *	from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21
34255332Scy * $FreeBSD: head/sys/sparc64/include/sysarch.h 124296 2004-01-09 16:52:09Z nectar $
35145510Sdarrenr */
36145510Sdarrenr
37145510Sdarrenr/*
38145510Sdarrenr * Architecture specific syscalls (sparc64)
39145510Sdarrenr */
40145510Sdarrenr#ifndef _MACHINE_SYSARCH_H_
41255332Scy#define _MACHINE_SYSARCH_H_
42255332Scy
43255332Scy#define	SPARC_UTRAP_INSTALL	1
44255332Scy#define	SPARC_SIGTRAMP_INSTALL	2
45255332Scy
46255332Scystruct sparc_utrap_install_args {
47255332Scy	int num;
48255332Scy	const struct sparc_utrap_args *handlers;
49255332Scy};
50255332Scy
51255332Scystruct sparc_sigtramp_install_args {
52255332Scy	void	*sia_new;
53255332Scy	void	**sia_old;
54255332Scy};
55145510Sdarrenr
56145510Sdarrenrstruct sparc_utrap_args {
57145510Sdarrenr	utrap_entry_t type;
58255332Scy	utrap_handler_t new_precise;
59255332Scy	utrap_handler_t new_deferred;
60255332Scy	utrap_handler_t *old_precise;
61255332Scy	utrap_handler_t *old_deferred;
62145510Sdarrenr};
63255332Scy
64255332Scy#ifndef _KERNEL
65255332Scy#include <sys/cdefs.h>
66255332Scy
67255332Scy__BEGIN_DECLS
68255332Scyint __sparc_utrap_install(utrap_entry_t type, utrap_handler_t new_precise,
69255332Scy			  utrap_handler_t new_deferred,
70255332Scy			  utrap_handler_t *old_precise,
71255332Scy			  utrap_handler_t *old_deferred);
72255332Scyint sysarch(int, void *);
73145510Sdarrenr__END_DECLS
74255332Scy#endif
75145510Sdarrenr
76145510Sdarrenr#endif /* !_MACHINE_SYSARCH_H_ */
77