13c4dd356SDavid Greenman /*- 23c4dd356SDavid Greenman * Copyright (c) 1993 The Regents of the University of California. 33c4dd356SDavid Greenman * All rights reserved. 43c4dd356SDavid Greenman * 53c4dd356SDavid Greenman * Redistribution and use in source and binary forms, with or without 63c4dd356SDavid Greenman * modification, are permitted provided that the following conditions 73c4dd356SDavid Greenman * are met: 83c4dd356SDavid Greenman * 1. Redistributions of source code must retain the above copyright 93c4dd356SDavid Greenman * notice, this list of conditions and the following disclaimer. 103c4dd356SDavid Greenman * 2. Redistributions in binary form must reproduce the above copyright 113c4dd356SDavid Greenman * notice, this list of conditions and the following disclaimer in the 123c4dd356SDavid Greenman * documentation and/or other materials provided with the distribution. 133c4dd356SDavid Greenman * 3. All advertising materials mentioning features or use of this software 143c4dd356SDavid Greenman * must display the following acknowledgement: 153c4dd356SDavid Greenman * This product includes software developed by the University of 163c4dd356SDavid Greenman * California, Berkeley and its contributors. 173c4dd356SDavid Greenman * 4. Neither the name of the University nor the names of its contributors 183c4dd356SDavid Greenman * may be used to endorse or promote products derived from this software 193c4dd356SDavid Greenman * without specific prior written permission. 203c4dd356SDavid Greenman * 213c4dd356SDavid Greenman * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 223c4dd356SDavid Greenman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 233c4dd356SDavid Greenman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 243c4dd356SDavid Greenman * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 253c4dd356SDavid Greenman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 263c4dd356SDavid Greenman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 273c4dd356SDavid Greenman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 283c4dd356SDavid Greenman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 293c4dd356SDavid Greenman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 303c4dd356SDavid Greenman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 313c4dd356SDavid Greenman * SUCH DAMAGE. 323c4dd356SDavid Greenman * 333c4dd356SDavid Greenman * $Id$ 343c4dd356SDavid Greenman */ 353c4dd356SDavid Greenman 36f43bd59eSRodney W. Grimes /* 37f43bd59eSRodney W. Grimes * Architecture specific syscalls (i386) 38f43bd59eSRodney W. Grimes */ 396e393973SGarrett Wollman #ifndef _MACHINE_SYSARCH_H_ 406e393973SGarrett Wollman #define _MACHINE_SYSARCH_H_ 1 416e393973SGarrett Wollman 426e393973SGarrett Wollman #include <sys/cdefs.h> 436e393973SGarrett Wollman 44f43bd59eSRodney W. Grimes #define I386_GET_LDT 0 45f43bd59eSRodney W. Grimes #define I386_SET_LDT 1 46f43bd59eSRodney W. Grimes 476e393973SGarrett Wollman #ifdef KERNEL 486e393973SGarrett Wollman /* nothing here yet... */ 496e393973SGarrett Wollman #else /* not KERNEL */ 506e393973SGarrett Wollman __BEGIN_DECLS 516e393973SGarrett Wollman 52f43bd59eSRodney W. Grimes int i386_get_ldt __P((int, union descriptor *, int)); 53f43bd59eSRodney W. Grimes int i386_set_ldt __P((int, union descriptor *, int)); 546e393973SGarrett Wollman 556e393973SGarrett Wollman __END_DECLS 566e393973SGarrett Wollman #endif /* not KERNEL */ 576e393973SGarrett Wollman #endif /* _MACHINE_SYSARCH_H_ */ 58