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 * 4. Neither the name of the University nor the names of its contributors 1488783Sjake * may be used to endorse or promote products derived from this software 1588783Sjake * without specific prior written permission. 1688783Sjake * 1788783Sjake * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1888783Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1988783Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2088783Sjake * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2188783Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2288783Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2388783Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2488783Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2588783Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2688783Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2788783Sjake * SUCH DAMAGE. 2888783Sjake * 2988783Sjake * from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21 3088783Sjake * $FreeBSD: releng/10.3/sys/sparc64/include/sysarch.h 178445 2008-04-23 20:38:37Z marius $ 3188783Sjake */ 3288783Sjake 3388783Sjake/* 3488783Sjake * Architecture specific syscalls (sparc64) 3588783Sjake */ 3688783Sjake#ifndef _MACHINE_SYSARCH_H_ 3788783Sjake#define _MACHINE_SYSARCH_H_ 3888783Sjake 39178445Smarius#include <machine/utrap.h> 40178445Smarius 4188783Sjake#define SPARC_UTRAP_INSTALL 1 4295744Sjake#define SPARC_SIGTRAMP_INSTALL 2 4388783Sjake 4488783Sjakestruct sparc_utrap_install_args { 4588783Sjake int num; 4688783Sjake const struct sparc_utrap_args *handlers; 4788783Sjake}; 4888783Sjake 4995744Sjakestruct sparc_sigtramp_install_args { 5095744Sjake void *sia_new; 5195744Sjake void **sia_old; 5295744Sjake}; 5395744Sjake 5488783Sjakestruct sparc_utrap_args { 5588783Sjake utrap_entry_t type; 5688783Sjake utrap_handler_t new_precise; 5788783Sjake utrap_handler_t new_deferred; 5888783Sjake utrap_handler_t *old_precise; 5988783Sjake utrap_handler_t *old_deferred; 6088783Sjake}; 6188783Sjake 6288783Sjake#ifndef _KERNEL 6388783Sjake#include <sys/cdefs.h> 6488783Sjake 6588783Sjake__BEGIN_DECLS 66178445Smariusint __sparc_utrap_install(utrap_entry_t _type, 67178445Smarius utrap_handler_t _new_precise, utrap_handler_t _new_deferred, 68178445Smarius utrap_handler_t *_old_precise, utrap_handler_t *_old_deferred); 69178445Smariusint sysarch(int _number, void *_args); 7088783Sjake__END_DECLS 71178445Smarius 7288783Sjake#endif 7388783Sjake 7488783Sjake#endif /* !_MACHINE_SYSARCH_H_ */ 75