FreeBSD/Linux Kernel Cross Reference
sys/i386/ktss.c
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: ktss.c,v $
29 * Revision 2.5 91/05/14 16:10:37 mrt
30 * Correcting copyright
31 *
32 * Revision 2.4 91/02/05 17:12:39 mrt
33 * Changed to new Mach copyright
34 * [91/02/01 17:35:28 mrt]
35 *
36 * Revision 2.3 90/08/27 21:57:07 dbg
37 * New selector names from new seg.h.
38 * [90/07/25 dbg]
39 *
40 * Revision 2.2 90/05/03 15:33:35 dbg
41 * Created.
42 * [90/02/15 dbg]
43 *
44 */
45
46 /*
47 * Kernel task state segment.
48 *
49 * We don't use the i386 task switch mechanism. We need a TSS
50 * only to hold the kernel stack pointer for the current thread.
51 *
52 * XXX multiprocessor??
53 */
54 #include <i386/tss.h>
55 #include <i386/seg.h>
56
57 struct i386_tss ktss = {
58 0, /* back link */
59 0, /* esp0 */
60 KERNEL_DS, /* ss0 */
61 0, /* esp1 */
62 0, /* ss1 */
63 0, /* esp2 */
64 0, /* ss2 */
65 0, /* cr3 */
66 0, /* eip */
67 0, /* eflags */
68 0, /* eax */
69 0, /* ecx */
70 0, /* edx */
71 0, /* ebx */
72 0, /* esp */
73 0, /* ebp */
74 0, /* esi */
75 0, /* edi */
76 0, /* es */
77 0, /* cs */
78 0, /* ss */
79 0, /* ds */
80 0, /* fs */
81 0, /* gs */
82 0, /* ldt */
83 0, /* trace_trap */
84 0x0FFF /* IO bitmap offset -
85 beyond end of TSS segment,
86 so no bitmap */
87 };
88
Cache object: 648c7ad9a4be46a9e434ae52f2bfe2b8
|