0
|
1 <!DOCTYPE html>
|
|
2
|
|
3 <!--
|
|
4 Google HTML5 slide template
|
|
5
|
|
6 Authors: Luke Mahé (code)
|
|
7 Marcin Wichary (code and design)
|
|
8
|
|
9 Dominic Mazzoni (browser compatibility)
|
|
10 Charles Chen (ChromeVox support)
|
|
11
|
|
12 URL: http://code.google.com/p/html5slides/
|
|
13 -->
|
|
14
|
|
15 <html>
|
|
16 <head>
|
|
17 <title>Presentation</title>
|
|
18 <link src='../styles.css'>
|
|
19 <meta charset='utf-8'>
|
|
20 <script
|
|
21 src='../slides.js'></script>
|
|
22 </head>
|
|
23
|
|
24 <style>
|
|
25 /* Your individual styles here, or just use inline styles if that’s
|
|
26 what you want. */
|
|
27
|
|
28
|
|
29 </style>
|
|
30 <body style='display: none'>
|
|
31
|
|
32 <section class='slides layout-regular template-default'>
|
|
33
|
|
34 <!-- Your slides (<article class='nobackground'>s) go here. Delete or comment out the
|
|
35 slides below. -->
|
|
36
|
|
37 <article>
|
|
38 <h1>CbC による OS の実装</h1>
|
|
39 <p>Taiki Taira<br>
|
|
40 August 10,2012</p>
|
|
41 </article>
|
|
42
|
|
43 <article>
|
|
44 <h3>研究目的</h3>
|
|
45 <p>
|
|
46 故障が発生した際に、機能を完全に喪失するのではなく、 可能な範囲で機能が維持されるようにすることを Graceful Degradation という。
|
|
47 本研究ではそれに沿った構成のOSを実装することを目的とする。
|
|
48 その実装には、本研究室で開発された Continution based C (CbC)を用いる。
|
|
49 code segment, data segment を意識した設計にし、メモリ外へのアクセスを制限しセキュリティの向上とプログラマの負担を減らす。<br>
|
|
50 Cerium の Task Manager をのせる。
|
|
51 shared library を減らす。<br>
|
|
52 </p>
|
|
53 </article>
|
|
54
|
|
55 <article>
|
|
56 <h3>
|
|
57 設計
|
|
58 </h3>
|
|
59 <img src='../images/boot_process.png'>
|
|
60 <img src='../images/kernel.png'>
|
|
61 <p>
|
|
62 Cerium の Task Mangaer を載せ、OS に渡される処理を並列化する。
|
|
63 </p>
|
|
64 </article>
|
|
65
|
|
66 <article>
|
|
67 <h3>
|
|
68 今週の作業 [~ 2012/08/14]
|
|
69 </h3>
|
|
70 <ul>
|
|
71 <li>GDT/LDT</li>
|
|
72 </ul>
|
|
73 </article>
|
|
74
|
|
75 <article>
|
|
76 <h3>GDT 1/3</h3>
|
|
77 <p>
|
|
78 Global Descripter Table --- すべてのプログラムから共通にアクセスするセグメントを定義する
|
|
79 </p>
|
|
80 </article>
|
|
81
|
|
82 <article>
|
|
83 <h3>GDT 2/3</h3>
|
|
84 <p>
|
|
85 <img src="../images/one_of_GDT_descriptor.png">
|
|
86 </p>
|
|
87 </article>
|
|
88
|
|
89 <article>
|
|
90 <h3>GDT 3/3</h3>
|
|
91 <pre>
|
|
92 gdt:
|
|
93 .word gdt_end - gdt
|
|
94 .long gdt
|
|
95 .word 0
|
|
96 .quad 0x0000000000000000 /* NULL descriptor */
|
|
97 .quad 0x00af9a000000ffff /* __KERNEL_CS */
|
|
98 .quad 0x00cf92000000ffff /* __KERNEL_DS */
|
|
99 .quad 0x0080890000000000 /* TS descriptor */
|
|
100 .quad 0x0000000000000000 /* TS continued */
|
|
101 gdt_end:
|
|
102 </pre>
|
|
103 <p>ブート前に CS DS まとめて設定。<br>
|
|
104 上記のコードと、新しくGDT を作成するコードを入れてみると、前回表示されたhelloworld は表示された。</p>
|
|
105 </article>
|
|
106
|
|
107 <article>
|
|
108 <h4> ……なんていうデバッグは辞めたいので。</h4>
|
|
109 <h3>debug</h3>
|
|
110 <p>
|
|
111 gdb だとデバッグするためにはカーネル側からシリアルポートに出力するなにかが必要?<br>
|
|
112 じゃあシリアルポートに出力方法を考えてみるか、GRUB2 になにか機能がないのかアプローチ<br>
|
|
113 </p>
|
|
114 </article>
|
|
115
|
|
116 <article>
|
|
117 <h3>
|
|
118 今後やること
|
|
119 </h3>
|
|
120 <ul>
|
|
121 <li>デバッグ方法確立</li>
|
|
122 <li>32bit mode から 64bit mode (long mode) へ。</li>
|
|
123 <li>malloc のソース/メモリ管理関係の資料を読む</li>
|
|
124 <li>Task Manager のソースと論文を読む</li>
|
|
125 </ul>
|
|
126 </article>
|
|
127
|
|
128 <article class='nobackground'>
|
|
129 <h1> END </h1>
|
|
130 </article>
|
|
131
|
|
132 </section>
|
|
133
|
|
134 </body>
|
|
135 </html>
|