sysarch.h revision 124296
1132718Skan/*-
2103445Skan * Copyright (c) 1993 The Regents of the University of California.
3103445Skan * All rights reserved.
4103445Skan *
5103445Skan * Redistribution and use in source and binary forms, with or without
6103445Skan * modification, are permitted provided that the following conditions
7103445Skan * are met:
8103445Skan * 1. Redistributions of source code must retain the above copyright
9103445Skan *    notice, this list of conditions and the following disclaimer.
10103445Skan * 2. Redistributions in binary form must reproduce the above copyright
11103445Skan *    notice, this list of conditions and the following disclaimer in the
12103445Skan *    documentation and/or other materials provided with the distribution.
13103445Skan * 3. All advertising materials mentioning features or use of this software
14103445Skan *    must display the following acknowledgement:
15103445Skan *	This product includes software developed by the University of
16103445Skan *	California, Berkeley and its contributors.
17103445Skan * 4. Neither the name of the University nor the names of its contributors
18103445Skan *    may be used to endorse or promote products derived from this software
19103445Skan *    without specific prior written permission.
20103445Skan *
21103445Skan * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22103445Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23103445Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24103445Skan * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25103445Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26103445Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27103445Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28103445Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29103445Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30103445Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31103445Skan * SUCH DAMAGE.
32103445Skan *
33103445Skan *	from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21
34103445Skan * $FreeBSD: head/sys/sparc64/include/sysarch.h 124296 2004-01-09 16:52:09Z nectar $
35103445Skan */
36103445Skan
37103445Skan/*
38103445Skan * Architecture specific syscalls (sparc64)
39103445Skan */
40103445Skan#ifndef _MACHINE_SYSARCH_H_
41103445Skan#define _MACHINE_SYSARCH_H_
42103445Skan
43103445Skan#define	SPARC_UTRAP_INSTALL	1
44103445Skan#define	SPARC_SIGTRAMP_INSTALL	2
45103445Skan
46103445Skanstruct sparc_utrap_install_args {
47103445Skan	int num;
48103445Skan	const struct sparc_utrap_args *handlers;
49103445Skan};
50103445Skan
51103445Skanstruct sparc_sigtramp_install_args {
52103445Skan	void	*sia_new;
53103445Skan	void	**sia_old;
54103445Skan};
55103445Skan
56103445Skanstruct sparc_utrap_args {
57103445Skan	utrap_entry_t type;
58103445Skan	utrap_handler_t new_precise;
59103445Skan	utrap_handler_t new_deferred;
60103445Skan	utrap_handler_t *old_precise;
61103445Skan	utrap_handler_t *old_deferred;
62103445Skan};
63103445Skan
64103445Skan#ifndef _KERNEL
65103445Skan#include <sys/cdefs.h>
66103445Skan
67103445Skan__BEGIN_DECLS
68103445Skanint __sparc_utrap_install(utrap_entry_t type, utrap_handler_t new_precise,
69103445Skan			  utrap_handler_t new_deferred,
70103445Skan			  utrap_handler_t *old_precise,
71103445Skan			  utrap_handler_t *old_deferred);
72103445Skanint sysarch(int, void *);
73103445Skan__END_DECLS
74103445Skan#endif
75103445Skan
76103445Skan#endif /* !_MACHINE_SYSARCH_H_ */
77103445Skan