|
|
1.1 root 1: /*
2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
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.
11: *
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
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: /*
23: * Copyright (c) 1992 NeXT Computer, Inc.
24: *
25: * Intel386 Family: Descriptor tables.
26: *
27: * HISTORY
28: *
29: * 30 March 1992 ? at NeXT
30: * Created.
31: */
32:
33: #import <architecture/i386/desc.h>
34: #import <architecture/i386/tss.h>
35:
36: /*
37: * A totally generic descriptor
38: * table entry.
39: */
40:
41: typedef union dt_entry {
42: code_desc_t code;
43: data_desc_t data;
44: ldt_desc_t ldt;
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;
50: } dt_entry_t;
51:
52: #define DESC_TBL_MAX 8192
53:
54: /*
55: * Global descriptor table.
56: */
57:
58: typedef union gdt_entry {
59: code_desc_t code;
60: data_desc_t data;
61: ldt_desc_t ldt;
62: call_gate_t call_gate;
63: task_gate_t task_gate;
64: tss_desc_t task_state;
65: } gdt_entry_t;
66:
67: typedef gdt_entry_t gdt_t;
68:
69: /*
70: * Interrupt descriptor table.
71: */
72:
73: typedef union idt_entry {
74: trap_gate_t trap_gate;
75: intr_gate_t intr_gate;
76: task_gate_t task_gate;
77: } idt_entry_t;
78:
79: typedef idt_entry_t idt_t;
80:
81: /*
82: * Local descriptor table.
83: */
84:
85: typedef union ldt_entry {
86: code_desc_t code;
87: data_desc_t data;
88: call_gate_t call_gate;
89: task_gate_t task_gate;
90: } ldt_entry_t;
91:
92: typedef ldt_entry_t ldt_t;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.