sysarch.h revision 124296
1251875Speter/*- 2251875Speter * Copyright (c) 1993 The Regents of the University of California. 3251875Speter * All rights reserved. 4251875Speter * 5251875Speter * Redistribution and use in source and binary forms, with or without 6251875Speter * modification, are permitted provided that the following conditions 7251875Speter * are met: 8251875Speter * 1. Redistributions of source code must retain the above copyright 9251875Speter * notice, this list of conditions and the following disclaimer. 10251875Speter * 2. Redistributions in binary form must reproduce the above copyright 11251875Speter * notice, this list of conditions and the following disclaimer in the 12251875Speter * documentation and/or other materials provided with the distribution. 13251875Speter * 3. All advertising materials mentioning features or use of this software 14251875Speter * must display the following acknowledgement: 15251875Speter * This product includes software developed by the University of 16251875Speter * California, Berkeley and its contributors. 17251875Speter * 4. Neither the name of the University nor the names of its contributors 18251875Speter * may be used to endorse or promote products derived from this software 19251875Speter * without specific prior written permission. 20251875Speter * 21251875Speter * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22251875Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23251875Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24251875Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25251875Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26251875Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27251875Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28251875Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29251875Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30251875Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31251875Speter * SUCH DAMAGE. 32251875Speter * 33251875Speter * from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21 34251875Speter * $FreeBSD: head/sys/sparc64/include/sysarch.h 124296 2004-01-09 16:52:09Z nectar $ 35251875Speter */ 36251875Speter 37251875Speter/* 38251875Speter * Architecture specific syscalls (sparc64) 39251875Speter */ 40251875Speter#ifndef _MACHINE_SYSARCH_H_ 41251875Speter#define _MACHINE_SYSARCH_H_ 42251875Speter 43251875Speter#define SPARC_UTRAP_INSTALL 1 44251875Speter#define SPARC_SIGTRAMP_INSTALL 2 45251875Speter 46251875Speterstruct sparc_utrap_install_args { 47251875Speter int num; 48251875Speter const struct sparc_utrap_args *handlers; 49251875Speter}; 50251875Speter 51251875Speterstruct sparc_sigtramp_install_args { 52251875Speter void *sia_new; 53251875Speter void **sia_old; 54251875Speter}; 55251875Speter 56251875Speterstruct sparc_utrap_args { 57251875Speter utrap_entry_t type; 58251875Speter utrap_handler_t new_precise; 59251875Speter utrap_handler_t new_deferred; 60251875Speter utrap_handler_t *old_precise; 61251875Speter utrap_handler_t *old_deferred; 62251875Speter}; 63251875Speter 64251875Speter#ifndef _KERNEL 65251875Speter#include <sys/cdefs.h> 66251875Speter 67251875Speter__BEGIN_DECLS 68251875Speterint __sparc_utrap_install(utrap_entry_t type, utrap_handler_t new_precise, 69251875Speter utrap_handler_t new_deferred, 70251875Speter utrap_handler_t *old_precise, 71251875Speter utrap_handler_t *old_deferred); 72251875Speterint sysarch(int, void *); 73251875Speter__END_DECLS 74251875Speter#endif 75251875Speter 76251875Speter#endif /* !_MACHINE_SYSARCH_H_ */ 77251875Speter