]>
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_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. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 * Copyright (c) 1992 NeXT Computer, Inc.
26 * Intel386 Family: Descriptor tables.
30 * 30 March 1992 ? at NeXT
34 #include <architecture/i386/desc.h>
35 #include <architecture/i386/tss.h>
38 * A totally generic descriptor
42 typedef union dt_entry
{
46 tss_desc_t task_state
;
47 call_gate_t call_gate
;
48 trap_gate_t trap_gate
;
49 intr_gate_t intr_gate
;
50 task_gate_t task_gate
;
53 #define DESC_TBL_MAX 8192
56 * Global descriptor table.
59 typedef union gdt_entry
{
63 call_gate_t call_gate
;
64 task_gate_t task_gate
;
65 tss_desc_t task_state
;
68 typedef gdt_entry_t gdt_t
;
71 * Interrupt descriptor table.
74 typedef union idt_entry
{
75 trap_gate_t trap_gate
;
76 intr_gate_t intr_gate
;
77 task_gate_t task_gate
;
80 typedef idt_entry_t idt_t
;
83 * Local descriptor table.
86 typedef union ldt_entry
{
89 call_gate_t call_gate
;
90 task_gate_t task_gate
;
93 typedef ldt_entry_t ldt_t
;