summaryrefslogtreecommitdiffstats
path: root/doc/pintos.html
blob: 8060c46693c0d456f7b5d2bb1733bb6537ab9715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                      "http://www.w3.org/TR/html40/loose.dtd">
<HTML>
<!-- Created on March, 6 2012 by texi2html 1.66 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<HEAD>
<TITLE>Pintos Projects: Table of Contents</TITLE>

<META NAME="description" CONTENT="Pintos Projects: Table of Contents">
<META NAME="keywords" CONTENT="Pintos Projects: Table of Contents">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.66">
<LINK REL="stylesheet" HREF="pintos.css">
</HEAD>

<BODY >

<A NAME="SEC_Contents"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="pintos.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="pintos.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="pintos_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<H1>Table of Contents</H1>
<BLOCKQUOTE>
<A NAME="TOC1" HREF="pintos_1.html#SEC1">1. Introduction</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC2" HREF="pintos_1.html#SEC2">1.1 Getting Started</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC3" HREF="pintos_1.html#SEC3">1.1.1 Source Tree Overview</A>
<BR>
<A NAME="TOC4" HREF="pintos_1.html#SEC4">1.1.2 Building Pintos</A>
<BR>
<A NAME="TOC5" HREF="pintos_1.html#SEC5">1.1.3 Running Pintos</A>
<BR>
<A NAME="TOC6" HREF="pintos_1.html#SEC6">1.1.4 Debugging versus Testing</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC7" HREF="pintos_1.html#SEC7">1.2 Grading</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC8" HREF="pintos_1.html#SEC8">1.2.1 Testing</A>
<BR>
<A NAME="TOC9" HREF="pintos_1.html#SEC9">1.2.2 Design</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC10" HREF="pintos_1.html#SEC10">1.2.2.1 Design Document</A>
<BR>
<A NAME="TOC11" HREF="pintos_1.html#SEC11">1.2.2.2 Source Code</A>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<A NAME="TOC12" HREF="pintos_1.html#SEC12">1.3 Legal and Ethical Issues</A>
<BR>
<A NAME="TOC13" HREF="pintos_1.html#SEC13">1.4 Acknowledgements</A>
<BR>
<A NAME="TOC14" HREF="pintos_1.html#SEC14">1.5 Trivia</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC15" HREF="pintos_2.html#SEC15">2. Project 0: Introducing Pintos</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC16" HREF="pintos_2.html#SEC16">2.1 Understanding Threads</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC17" HREF="pintos_2.html#SEC17">2.1.1 Source Files</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC18" HREF="pintos_2.html#SEC18">2.1.1.1 <Q><TT>devices</TT></Q> code</A>
<BR>
<A NAME="TOC19" HREF="pintos_2.html#SEC19">2.1.1.2 <Q><TT>lib</TT></Q> files</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC20" HREF="pintos_2.html#SEC20">2.1.2 Synchronization</A>
<BR>
<A NAME="TOC21" HREF="pintos_2.html#SEC21">2.1.3 Development Suggestions</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC22" HREF="pintos_2.html#SEC22">2.2 Understanding User Programs</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC23" HREF="pintos_2.html#SEC23">2.2.1 Source Files</A>
<BR>
<A NAME="TOC24" HREF="pintos_2.html#SEC24">2.2.2 Using the File System</A>
<BR>
<A NAME="TOC25" HREF="pintos_2.html#SEC25">2.2.3 How User Programs Work</A>
<BR>
<A NAME="TOC26" HREF="pintos_2.html#SEC26">2.2.4 Virtual Memory Layout</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC27" HREF="pintos_2.html#SEC27">2.2.4.1 Typical Memory Layout</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC28" HREF="pintos_2.html#SEC28">2.2.5 Accessing User Memory</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC29" HREF="pintos_2.html#SEC29">2.3 Requirements</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC30" HREF="pintos_2.html#SEC30">2.3.1 Design Document</A>
<BR>
<A NAME="TOC31" HREF="pintos_2.html#SEC31">2.3.2 Alarm Clock</A>
<BR>
<A NAME="TOC32" HREF="pintos_2.html#SEC32">2.3.3 Argument Passing</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC33" HREF="pintos_2.html#SEC33">2.4 FAQ</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC34" HREF="pintos_2.html#SEC34">2.4.1 Threads FAQ</A>
<BR>
<A NAME="TOC35" HREF="pintos_2.html#SEC35">2.4.2 Alarm Clock FAQ</A>
<BR>
<A NAME="TOC36" HREF="pintos_2.html#SEC36">2.4.3 Userprog FAQ</A>
<BR>
<A NAME="TOC37" HREF="pintos_2.html#SEC37">2.4.4 Argument Passing FAQ</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC38" HREF="pintos_2.html#SEC38">2.5 80<VAR>x</VAR>86 Calling Convention</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC39" HREF="pintos_2.html#SEC39">2.5.1 Program Startup Details</A>
<BR>
<A NAME="TOC40" HREF="pintos_2.html#SEC40">2.5.2 System Call Details</A>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<A NAME="TOC41" HREF="pintos_3.html#SEC41">3. Project 1: Threads</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC42" HREF="pintos_3.html#SEC42">3.1 Background</A>
<BR>
<A NAME="TOC43" HREF="pintos_3.html#SEC43">3.2 Requirements</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC44" HREF="pintos_3.html#SEC44">3.2.1 Design Document</A>
<BR>
<A NAME="TOC45" HREF="pintos_3.html#SEC45">3.2.2 Priority Scheduling</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC46" HREF="pintos_3.html#SEC46">3.3 FAQ</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC47" HREF="pintos_4.html#SEC47">4. Project 2: Virtual Memory</A>
<BR>
<A NAME="TOC48" HREF="pintos_5.html#SEC48">A. Reference Guide</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC49" HREF="pintos_5.html#SEC49">A.1 Loading</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC50" HREF="pintos_5.html#SEC50">A.1.1 The Loader</A>
<BR>
<A NAME="TOC51" HREF="pintos_5.html#SEC51">A.1.2 Low-Level Kernel Initialization</A>
<BR>
<A NAME="TOC52" HREF="pintos_5.html#SEC52">A.1.3 High-Level Kernel Initialization</A>
<BR>
<A NAME="TOC53" HREF="pintos_5.html#SEC53">A.1.4 Physical Memory Map</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC54" HREF="pintos_5.html#SEC54">A.2 Threads</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC55" HREF="pintos_5.html#SEC55">A.2.1 <CODE>struct thread</CODE></A>
<BR>
<A NAME="TOC56" HREF="pintos_5.html#SEC56">A.2.2 Thread Functions</A>
<BR>
<A NAME="TOC57" HREF="pintos_5.html#SEC57">A.2.3 Thread Switching</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC58" HREF="pintos_5.html#SEC58">A.3 Synchronization</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC59" HREF="pintos_5.html#SEC59">A.3.1 Disabling Interrupts</A>
<BR>
<A NAME="TOC60" HREF="pintos_5.html#SEC60">A.3.2 Semaphores</A>
<BR>
<A NAME="TOC61" HREF="pintos_5.html#SEC61">A.3.3 Locks</A>
<BR>
<A NAME="TOC62" HREF="pintos_5.html#SEC62">A.3.4 Monitors</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC63" HREF="pintos_5.html#SEC63">A.3.4.1 Monitor Example</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC64" HREF="pintos_5.html#SEC64">A.3.5 Optimization Barriers</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC65" HREF="pintos_5.html#SEC65">A.4 Interrupt Handling</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC66" HREF="pintos_5.html#SEC66">A.4.1 Interrupt Infrastructure</A>
<BR>
<A NAME="TOC67" HREF="pintos_5.html#SEC67">A.4.2 Internal Interrupt Handling</A>
<BR>
<A NAME="TOC68" HREF="pintos_5.html#SEC68">A.4.3 External Interrupt Handling</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC69" HREF="pintos_5.html#SEC69">A.5 Memory Allocation</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC70" HREF="pintos_5.html#SEC70">A.5.1 Page Allocator</A>
<BR>
<A NAME="TOC71" HREF="pintos_5.html#SEC71">A.5.2 Block Allocator</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC72" HREF="pintos_5.html#SEC72">A.6 Virtual Addresses</A>
<BR>
<A NAME="TOC73" HREF="pintos_5.html#SEC73">A.7 Page Table</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC74" HREF="pintos_5.html#SEC74">A.7.1 Creation, Destruction, and Activation</A>
<BR>
<A NAME="TOC75" HREF="pintos_5.html#SEC75">A.7.2 Inspection and Updates</A>
<BR>
<A NAME="TOC76" HREF="pintos_5.html#SEC76">A.7.3 Accessed and Dirty Bits</A>
<BR>
<A NAME="TOC77" HREF="pintos_5.html#SEC77">A.7.4 Page Table Details</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC78" HREF="pintos_5.html#SEC78">A.7.4.1 Structure</A>
<BR>
<A NAME="TOC79" HREF="pintos_5.html#SEC79">A.7.4.2 Page Table Entry Format</A>
<BR>
<A NAME="TOC80" HREF="pintos_5.html#SEC80">A.7.4.3 Page Directory Entry Format</A>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<A NAME="TOC81" HREF="pintos_5.html#SEC81">A.8 Hash Table</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC82" HREF="pintos_5.html#SEC82">A.8.1 Data Types</A>
<BR>
<A NAME="TOC83" HREF="pintos_5.html#SEC83">A.8.2 Basic Functions</A>
<BR>
<A NAME="TOC84" HREF="pintos_5.html#SEC84">A.8.3 Search Functions</A>
<BR>
<A NAME="TOC85" HREF="pintos_5.html#SEC85">A.8.4 Iteration Functions</A>
<BR>
<A NAME="TOC86" HREF="pintos_5.html#SEC86">A.8.5 Hash Table Example</A>
<BR>
<A NAME="TOC87" HREF="pintos_5.html#SEC87">A.8.6 Auxiliary Data</A>
<BR>
<A NAME="TOC88" HREF="pintos_5.html#SEC88">A.8.7 Synchronization</A>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<A NAME="TOC89" HREF="pintos_6.html#SEC89">B. Coding Standards</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC90" HREF="pintos_6.html#SEC90">B.1 Style</A>
<BR>
<A NAME="TOC91" HREF="pintos_6.html#SEC91">B.2 C99</A>
<BR>
<A NAME="TOC92" HREF="pintos_6.html#SEC92">B.3 Unsafe String Functions</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC93" HREF="pintos_7.html#SEC93">C. Project Documentation</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC94" HREF="pintos_7.html#SEC94">C.1 Sample Assignment</A>
<BR>
<A NAME="TOC95" HREF="pintos_7.html#SEC95">C.2 Sample Design Document</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC96" HREF="pintos_8.html#SEC96">D. Debugging Tools</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC97" HREF="pintos_8.html#SEC97">D.1 <CODE>printf()</CODE></A>
<BR>
<A NAME="TOC98" HREF="pintos_8.html#SEC98">D.2 <CODE>ASSERT</CODE></A>
<BR>
<A NAME="TOC99" HREF="pintos_8.html#SEC99">D.3 Function and Parameter Attributes</A>
<BR>
<A NAME="TOC100" HREF="pintos_8.html#SEC100">D.4 Backtraces</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC101" HREF="pintos_8.html#SEC101">D.4.1 Example</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC102" HREF="pintos_8.html#SEC102">D.5 GDB</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC103" HREF="pintos_8.html#SEC103">D.5.1 Using GDB</A>
<BR>
<A NAME="TOC104" HREF="pintos_8.html#SEC104">D.5.2 Example GDB Session</A>
<BR>
<A NAME="TOC105" HREF="pintos_8.html#SEC105">D.5.3 FAQ</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC106" HREF="pintos_8.html#SEC106">D.6 Triple Faults</A>
<BR>
<A NAME="TOC107" HREF="pintos_8.html#SEC107">D.7 Modifying Bochs</A>
<BR>
<A NAME="TOC108" HREF="pintos_8.html#SEC108">D.8 Tips</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC109" HREF="pintos_9.html#SEC109">E. Development Tools</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC110" HREF="pintos_9.html#SEC110">E.1 Tags</A>
<BR>
<A NAME="TOC111" HREF="pintos_9.html#SEC111">E.2 cscope</A>
<BR>
<A NAME="TOC112" HREF="pintos_9.html#SEC112">E.3 git</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC113" HREF="pintos_10.html#SEC113">Bibliography</A>
<BR>
<BLOCKQUOTE>
<A NAME="TOC114" HREF="pintos_10.html#SEC114">E.4 Hardware References</A>
<BR>
<A NAME="TOC115" HREF="pintos_10.html#SEC115">E.5 Software References</A>
<BR>
<A NAME="TOC116" HREF="pintos_10.html#SEC116">E.6 Operating System Design References</A>
<BR>
</BLOCKQUOTE>
<A NAME="TOC117" HREF="pintos_11.html#SEC117">License</A>
<BR>
</BLOCKQUOTE>
<HR SIZE=1>
<BR>
<FONT SIZE="-1">
This document was generated
by on <I>March, 6 2012</I>
using <A HREF="http://texi2html.cvshome.org"><I>texi2html</I></A>
</FONT>

</BODY>
</HTML>