-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbirth.html
40 lines (34 loc) · 1.24 KB
/
birth.html
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
<html>
<head>
<title>Birth of the first process</title>
<link rel="stylesheet" href="workshop.css" type="text/css" />
</head>
<body>
<div id="column">
<div id="main">
<div id="head">
<img src="logo-solo.png" id="logo" />
<h1>Birth of the first process</h1>
</div>
<div class="indexlink">
(<a href="index.html"><< back to index</a>)
</div>
<p>Near the end of the kernel initialization <tt>kernel_init()</tt> is
called. It does some final initialisation and then starts the first
userspace process.</p>
<ul>
<li>Can you find where <tt>stdin</tt>, <tt>stdout</tt> and
<tt>stderr</tt> are opened?</li>
<li>Which executable is started as the first process?</li>
</ul>
<p>For this exercise, you want to attach gdb to qemu before the kernel is
started. In order to do this, pass the <tt>-S</tt> option to Qemu. This
will tell it to <b>not</b> start the kernel until after you give the
<tt>continue</tt> command in gdb.</p>
</div>
<address>
<a href="mailto:[email protected]">Kees-Jan Dijkzeul</a>
</address>
</div>
</body>
</html>