sysi86.h (7c478bd9) | sysi86.h (9acbbeaf) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */ 28/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */ 29/* All Rights Reserved */ 30 31#ifndef _SYS_SYSI86_H --- 107 unchanged lines hidden (view full) --- 139#define SI86SSD_TYPE(ssd) ((ssd)->acc1 & 0x1F) 140#define SI86SSD_DPL(ssd) (((ssd)->acc1 >> 5) & 0x3) 141#define SI86SSD_PRES(ssd) (((ssd)->acc1 >> 7) & 1) 142#define SI86SSD_ISUSEG(ssd) (SI86SSD_TYPE(ssd) >= SDT_MEMRO) 143#define SI86SSD_ISLONG(ssd) ((ssd)->acc2 & 0x2) 144 145#ifdef _KERNEL 146extern void usd_to_ssd(user_desc_t *, struct ssd *, selector_t); | 23 * Use is subject to license terms. 24 */ 25 26/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */ 27/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */ 28/* All Rights Reserved */ 29 30#ifndef _SYS_SYSI86_H --- 107 unchanged lines hidden (view full) --- 138#define SI86SSD_TYPE(ssd) ((ssd)->acc1 & 0x1F) 139#define SI86SSD_DPL(ssd) (((ssd)->acc1 >> 5) & 0x3) 140#define SI86SSD_PRES(ssd) (((ssd)->acc1 >> 7) & 1) 141#define SI86SSD_ISUSEG(ssd) (SI86SSD_TYPE(ssd) >= SDT_MEMRO) 142#define SI86SSD_ISLONG(ssd) ((ssd)->acc2 & 0x2) 143 144#ifdef _KERNEL 145extern void usd_to_ssd(user_desc_t *, struct ssd *, selector_t); |
146extern int setdscr(struct ssd *); |
|
147#endif /* _KERNEL */ 148 149/* 150 * The SI86SHFIL subcommand of the sysi86() system call 151 * maps a file into a region in user address space. 152 * The request structure declared below is used to pass the 153 * system call parameters. A pointer to the structure is 154 * passed as the second argument of the system call. --- 104 unchanged lines hidden --- | 147#endif /* _KERNEL */ 148 149/* 150 * The SI86SHFIL subcommand of the sysi86() system call 151 * maps a file into a region in user address space. 152 * The request structure declared below is used to pass the 153 * system call parameters. A pointer to the structure is 154 * passed as the second argument of the system call. --- 104 unchanged lines hidden --- |