]>
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 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1992 NeXT Computer, Inc.
25 * Intel386 Family: Descriptor tables.
29 * 30 March 1992 ? at NeXT
33 #include <architecture/i386/desc.h>
34 #include <architecture/i386/tss.h>
37 * A totally generic descriptor
41 typedef union dt_entry
{
45 tss_desc_t task_state
;
46 call_gate_t call_gate
;
47 trap_gate_t trap_gate
;
48 intr_gate_t intr_gate
;
49 task_gate_t task_gate
;
52 #define DESC_TBL_MAX 8192
55 * Global descriptor table.
58 typedef union gdt_entry
{
62 call_gate_t call_gate
;
63 task_gate_t task_gate
;
64 tss_desc_t task_state
;
67 typedef gdt_entry_t gdt_t
;
70 * Interrupt descriptor table.
73 typedef union idt_entry
{
74 trap_gate_t trap_gate
;
75 intr_gate_t intr_gate
;
76 task_gate_t task_gate
;
79 typedef idt_entry_t idt_t
;
82 * Local descriptor table.
85 typedef union ldt_entry
{
88 call_gate_t call_gate
;
89 task_gate_t task_gate
;
92 typedef ldt_entry_t ldt_t
;