segments.h (92761) | segments.h (93018) |
---|---|
1/*- 2 * Copyright (c) 1989, 1990 William F. Jolitz 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)segments.h 7.1 (Berkeley) 5/9/91 | 1/*- 2 * Copyright (c) 1989, 1990 William F. Jolitz 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)segments.h 7.1 (Berkeley) 5/9/91 |
38 * $FreeBSD: head/sys/i386/include/segments.h 92761 2002-03-20 05:48:58Z alfred $ | 38 * $FreeBSD: head/sys/i386/include/segments.h 93018 2002-03-23 15:09:35Z bde $ |
39 */ 40 41#ifndef _MACHINE_SEGMENTS_H_ 42#define _MACHINE_SEGMENTS_H_ 43 44/* 45 * 386 Segmentation Data Structures and definitions 46 * William F. Jolitz (william@ernie.berkeley.edu) 6/20/1989 --- 195 unchanged lines hidden (view full) --- 242 243#ifdef _KERNEL 244extern int _default_ldt; 245extern union descriptor gdt[]; 246extern struct soft_segment_descriptor gdt_segs[]; 247extern struct gate_descriptor *idt; 248extern union descriptor ldt[NLDT]; 249 | 39 */ 40 41#ifndef _MACHINE_SEGMENTS_H_ 42#define _MACHINE_SEGMENTS_H_ 43 44/* 45 * 386 Segmentation Data Structures and definitions 46 * William F. Jolitz (william@ernie.berkeley.edu) 6/20/1989 --- 195 unchanged lines hidden (view full) --- 242 243#ifdef _KERNEL 244extern int _default_ldt; 245extern union descriptor gdt[]; 246extern struct soft_segment_descriptor gdt_segs[]; 247extern struct gate_descriptor *idt; 248extern union descriptor ldt[NLDT]; 249 |
250void lgdt (struct region_descriptor *rdp); 251void lidt (struct region_descriptor *rdp); 252void lldt (u_short sel); 253void sdtossd (struct segment_descriptor *sdp, 254 struct soft_segment_descriptor *ssdp); 255void ssdtosd (struct soft_segment_descriptor *ssdp, 256 struct segment_descriptor *sdp); | 250void lgdt(struct region_descriptor *rdp); 251void lidt(struct region_descriptor *rdp); 252void lldt(u_short sel); 253void sdtossd(struct segment_descriptor *sdp, 254 struct soft_segment_descriptor *ssdp); 255void ssdtosd(struct soft_segment_descriptor *ssdp, 256 struct segment_descriptor *sdp); |
257#endif /* _KERNEL */ 258 259#endif /* !_MACHINE_SEGMENTS_H_ */ | 257#endif /* _KERNEL */ 258 259#endif /* !_MACHINE_SEGMENTS_H_ */ |