sysarch.h revision 88783
188783Sjake/*-
288783Sjake * Copyright (c) 1993 The Regents of the University of California.
388783Sjake * All rights reserved.
488783Sjake *
588783Sjake * Redistribution and use in source and binary forms, with or without
688783Sjake * modification, are permitted provided that the following conditions
788783Sjake * are met:
888783Sjake * 1. Redistributions of source code must retain the above copyright
988783Sjake *    notice, this list of conditions and the following disclaimer.
1088783Sjake * 2. Redistributions in binary form must reproduce the above copyright
1188783Sjake *    notice, this list of conditions and the following disclaimer in the
1288783Sjake *    documentation and/or other materials provided with the distribution.
1388783Sjake * 3. All advertising materials mentioning features or use of this software
1488783Sjake *    must display the following acknowledgement:
1588783Sjake *	This product includes software developed by the University of
1688783Sjake *	California, Berkeley and its contributors.
1788783Sjake * 4. Neither the name of the University nor the names of its contributors
1888783Sjake *    may be used to endorse or promote products derived from this software
1988783Sjake *    without specific prior written permission.
2088783Sjake *
2188783Sjake * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2288783Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2388783Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2488783Sjake * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2588783Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2688783Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2788783Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2888783Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2988783Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3088783Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3188783Sjake * SUCH DAMAGE.
3288783Sjake *
3388783Sjake *	from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21
3488783Sjake * $FreeBSD: head/sys/sparc64/include/sysarch.h 88783 2002-01-01 20:57:51Z jake $
3588783Sjake */
3688783Sjake
3788783Sjake/*
3888783Sjake * Architecture specific syscalls (sparc64)
3988783Sjake */
4088783Sjake#ifndef _MACHINE_SYSARCH_H_
4188783Sjake#define _MACHINE_SYSARCH_H_
4288783Sjake
4388783Sjake#define	SPARC_UTRAP_INSTALL	1
4488783Sjake
4588783Sjakestruct sparc_utrap_install_args {
4688783Sjake	int num;
4788783Sjake	const struct sparc_utrap_args *handlers;
4888783Sjake};
4988783Sjake
5088783Sjakestruct sparc_utrap_args {
5188783Sjake	utrap_entry_t type;
5288783Sjake	utrap_handler_t new_precise;
5388783Sjake	utrap_handler_t new_deferred;
5488783Sjake	utrap_handler_t *old_precise;
5588783Sjake	utrap_handler_t *old_deferred;
5688783Sjake};
5788783Sjake
5888783Sjake#ifndef _KERNEL
5988783Sjake#include <sys/cdefs.h>
6088783Sjake
6188783Sjake__BEGIN_DECLS
6288783Sjakeint __sparc_utrap_install(utrap_entry_t type, utrap_handler_t new_precise,
6388783Sjake			  utrap_handler_t new_deferred,
6488783Sjake			  utrap_handler_t *old_precise,
6588783Sjake			  utrap_handler_t *old_deferred);
6688783Sjake__END_DECLS
6788783Sjake#endif
6888783Sjake
6988783Sjake#endif /* !_MACHINE_SYSARCH_H_ */
70