sysarch.h revision 95744
114986Swosch/*-
21845Swollman * Copyright (c) 1993 The Regents of the University of California.
314986Swosch * All rights reserved.
414986Swosch *
514986Swosch * Redistribution and use in source and binary forms, with or without
61845Swollman * modification, are permitted provided that the following conditions
71845Swollman * are met:
814986Swosch * 1. Redistributions of source code must retain the above copyright
91845Swollman *    notice, this list of conditions and the following disclaimer.
1014986Swosch * 2. Redistributions in binary form must reproduce the above copyright
1114986Swosch *    notice, this list of conditions and the following disclaimer in the
1214986Swosch *    documentation and/or other materials provided with the distribution.
1314986Swosch * 3. All advertising materials mentioning features or use of this software
1414986Swosch *    must display the following acknowledgement:
1514986Swosch *	This product includes software developed by the University of
1614986Swosch *	California, Berkeley and its contributors.
1714986Swosch * 4. Neither the name of the University nor the names of its contributors
1814986Swosch *    may be used to endorse or promote products derived from this software
1914986Swosch *    without specific prior written permission.
2014986Swosch *
2114986Swosch * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2214986Swosch * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2314986Swosch * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2414986Swosch * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2514986Swosch * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2614986Swosch * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2714986Swosch * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2814986Swosch * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2914986Swosch * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3014986Swosch * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3114986Swosch * SUCH DAMAGE.
321845Swollman *
3314986Swosch *	from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21
341845Swollman * $FreeBSD: head/sys/sparc64/include/sysarch.h 95744 2002-04-29 18:08:26Z jake $
351845Swollman */
361845Swollman
371845Swollman/*
381845Swollman * Architecture specific syscalls (sparc64)
391845Swollman */
401845Swollman#ifndef _MACHINE_SYSARCH_H_
411845Swollman#define _MACHINE_SYSARCH_H_
421845Swollman
431845Swollman#define	SPARC_UTRAP_INSTALL	1
441845Swollman#define	SPARC_SIGTRAMP_INSTALL	2
451845Swollman
461845Swollmanstruct sparc_utrap_install_args {
471845Swollman	int num;
481845Swollman	const struct sparc_utrap_args *handlers;
491845Swollman};
501845Swollman
511845Swollmanstruct sparc_sigtramp_install_args {
521845Swollman	void	*sia_new;
531845Swollman	void	**sia_old;
541845Swollman};
551845Swollman
561845Swollmanstruct sparc_utrap_args {
5714986Swosch	utrap_entry_t type;
581845Swollman	utrap_handler_t new_precise;
59	utrap_handler_t new_deferred;
60	utrap_handler_t *old_precise;
61	utrap_handler_t *old_deferred;
62};
63
64#ifndef _KERNEL
65#include <sys/cdefs.h>
66
67__BEGIN_DECLS
68int __sparc_utrap_install(utrap_entry_t type, utrap_handler_t new_precise,
69			  utrap_handler_t new_deferred,
70			  utrap_handler_t *old_precise,
71			  utrap_handler_t *old_deferred);
72__END_DECLS
73#endif
74
75#endif /* !_MACHINE_SYSARCH_H_ */
76