]>
git.saurik.com Git - apple/xnu.git/blob - EXTERNAL_HEADERS/architecture/i386/table.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 * Copyright (c) 1992 NeXT Computer, Inc.
31 * Intel386 Family: Descriptor tables.
35 * 30 March 1992 ? at NeXT
39 #include <architecture/i386/desc.h>
40 #include <architecture/i386/tss.h>
43 * A totally generic descriptor
47 typedef union dt_entry
{
51 tss_desc_t task_state
;
52 call_gate_t call_gate
;
53 trap_gate_t trap_gate
;
54 intr_gate_t intr_gate
;
55 task_gate_t task_gate
;
58 #define DESC_TBL_MAX 8192
61 * Global descriptor table.
64 typedef union gdt_entry
{
68 call_gate_t call_gate
;
69 task_gate_t task_gate
;
70 tss_desc_t task_state
;
73 typedef gdt_entry_t gdt_t
;
76 * Interrupt descriptor table.
79 typedef union idt_entry
{
80 trap_gate_t trap_gate
;
81 intr_gate_t intr_gate
;
82 task_gate_t task_gate
;
85 typedef idt_entry_t idt_t
;
88 * Local descriptor table.
91 typedef union ldt_entry
{
94 call_gate_t call_gate
;
95 task_gate_t task_gate
;
98 typedef ldt_entry_t ldt_t
;