sysarch.h revision 33049
11817Sdg/*-
21817Sdg * Copyright (c) 1993 The Regents of the University of California.
31817Sdg * All rights reserved.
41817Sdg *
51817Sdg * Redistribution and use in source and binary forms, with or without
61817Sdg * modification, are permitted provided that the following conditions
71817Sdg * are met:
81817Sdg * 1. Redistributions of source code must retain the above copyright
91817Sdg *    notice, this list of conditions and the following disclaimer.
101817Sdg * 2. Redistributions in binary form must reproduce the above copyright
111817Sdg *    notice, this list of conditions and the following disclaimer in the
121817Sdg *    documentation and/or other materials provided with the distribution.
131817Sdg * 3. All advertising materials mentioning features or use of this software
141817Sdg *    must display the following acknowledgement:
151817Sdg *	This product includes software developed by the University of
161817Sdg *	California, Berkeley and its contributors.
171817Sdg * 4. Neither the name of the University nor the names of its contributors
181817Sdg *    may be used to endorse or promote products derived from this software
191817Sdg *    without specific prior written permission.
201817Sdg *
211817Sdg * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
221817Sdg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231817Sdg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241817Sdg * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
251817Sdg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261817Sdg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271817Sdg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281817Sdg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291817Sdg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301817Sdg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311817Sdg * SUCH DAMAGE.
321817Sdg *
3333049Sbde *	$Id: sysarch.h,v 1.7 1997/08/09 00:03:22 dyson Exp $
341817Sdg */
351817Sdg
36550Srgrimes/*
37550Srgrimes * Architecture specific syscalls (i386)
38550Srgrimes */
39719Swollman#ifndef _MACHINE_SYSARCH_H_
4033049Sbde#define _MACHINE_SYSARCH_H_
41719Swollman
42550Srgrimes#define I386_GET_LDT	0
43550Srgrimes#define I386_SET_LDT	1
4427993Sdyson				/* I386_IOPL */
4527993Sdyson#define I386_GET_IOPERM	3
4627993Sdyson#define I386_SET_IOPERM	4
4727993Sdyson				/* xxxxx */
4827993Sdyson#define I386_VM86	6
49550Srgrimes
5033049Sbde#ifndef KERNEL
5133049Sbde#include <sys/cdefs.h>
5233049Sbde
5333049Sbdeunion descriptor;
5433049Sbde
55719Swollman__BEGIN_DECLS
56550Srgrimesint i386_get_ldt __P((int, union descriptor *, int));
57550Srgrimesint i386_set_ldt __P((int, union descriptor *, int));
5833049Sbde__END_DECLS
5933049Sbde#endif /* !KERNEL */
60719Swollman
6133049Sbde#endif /* !_MACHINE_SYSARCH_H_ */
62