《操作系统》的实验代码。
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

138 rader
5.5 KiB

12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
11 år sedan
11 år sedan
11 år sedan
12 år sedan
12 år sedan
11 år sedan
11 år sedan
11 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
11 år sedan
11 år sedan
11 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
12 år sedan
  1. INTRODUCTION
  2. ============
  3. ucore labs was used as OS Experiments in OS Course Of Dept. of Computer Science & Technology, Tsinghua University.
  4. ucore is a teaching OS which is derived from xv6&jos in MIT, OS161 in Harvard and Linux.
  5. ucore was developed and used in Department of Computer Science & Technology, Institute for Interdisciplinary Information Sciences, Tsinghua University.
  6. The codes in the files that constitute xv6&jos are Copyright (2006-Current) Frans Kaashoek, Robert Morris, and Russ Cox and uses MIT License.
  7. The codes in the files that constitute OS/161 are written by David A. Holland.
  8. The codes in the files that constitute ucore are Copyright (2010-Current) Yu Chen, Naizheng Wang, Yong Xiang and uses GPL License.
  9. The documents in the files that constitute ucore are Copyright (2010-Current) Yu Chen, Yong Xiang and uses Creative Commons Attribution/Share-Alike (CC-BY-SA) License.
  10. PEOPLES
  11. ========
  12. OS course for Yao class, fall, 2013
  13. -----------------------------------
  14. Lectures: Chen, Yu http://soft.cs.tsinghua.edu.cn/~chen
  15. TA: Qi, Xiao qixiao0113@gmail.com
  16. TA: Mao, Junjie eternal.n08@gmail.com
  17. CONTENTS
  18. ========
  19. Notes, Lectures OS course for Yao class, fall, 2013
  20. -----------------
  21. lec1: os intro 09162013
  22. labs info
  23. ----------------]
  24. lab0: preparing
  25. lab1: boot/protect mode/stack/interrupt
  26. lab2: physical memory management
  27. lab3: virtual memory management
  28. lab4: kernel thread management
  29. lab5: user process management
  30. lab6: scheduling
  31. lab7: mutex/sync
  32. lab8: filesystem
  33. WORK IN MS WINDOWS
  34. ==================
  35. Working in Linux is encouraged. But If you like to work in MS Windows, we provide virtual machine environment (Runnint Ubuntu in VirtualBox) in
  36. Windows to help you to finish the labs. If you don't want to install ubuntu and other softs to finish these labs in Windows, you can use
  37. VirtualBox soft (https://www.virtualbox.org/) and a virtual disk image with all these softs. Below example is shown how to setup lab environment in Windows.
  38. You can download this virtual disk image -- oslabs_for_student_2012.zip (576.2MB,) from http://pan.baidu.com/share/link?shareid=69868&uk=2585194235, which
  39. is an VirtualBox disk image (contains ubuntu 12.04 and needed softs, and is zipped with zip and xz format), and can be unzipped
  40. by haozip software (http://www.haozip.com).
  41. After unzip oslabs_for_student_2012.zip, you will get
  42. ---
  43. C:\vms\ubuntu-12.04.vbox.xz
  44. C:\vms\ubuntu-12.04.vmdk.vmdk.xz
  45. C:\vms\ubuntu-12.04.vmdk-flat.vmdk.xz
  46. ---
  47. then you will continue unzip all these files, and get
  48. ---
  49. C:\vms\ubuntu-12.04.vbox
  50. C:\vms\ubuntu-12.04.vmdk.vmdk
  51. C:\vms\ubuntu-12.04.vmdk-flat.vmdk
  52. ---
  53. If you installed VirtualBox soft, then the last step is: double clik file "ubuntu-12.04.vbox" and run ubuntu 12.04 in VirtualBox.
  54. In ubuntu 12.04 login Interface:
  55. username: chy
  56. password: <SPACE KEY>
  57. After you login, you will see the directory ucore_lab in HOME directory.
  58. EXERCISE STEPS
  59. ==============
  60. 0 Get the newest os lab src codes/docs.(Insure you can connect to github in ubuntu running on VrtualBox)
  61. 0.1 If you try to get all codes/docs
  62. $rm -rf ucore_lab
  63. $git clone git://github.com/chyyuu/ucore_lab.git
  64. $cd ucore_lab
  65. 0.2 If you gloned ucore_lab and only try to get the updated codes/docs
  66. $cd ucore_lab
  67. $git pull
  68. 1 $cd labX
  69. 2 read codes (specially the modified or added files)
  70. 3 add your code
  71. 4 compile your code
  72. $make
  73. 5 check your code
  74. $make qemu
  75. OR
  76. $make grade
  77. 6 handin your code
  78. $make handin
  79. OPTION
  80. ==============
  81. Now, ucore suuport LLVM/Clang-3.5 +
  82. in step4:
  83. $ USELLVM=1 make
  84. then you will use clang to compile ucore
  85. GRADE/RANK
  86. ==========
  87. Superman: Finish all OS labs in one month by yourself
  88. Master: Finish all OS labs in two month by yourself
  89. Veteran: Finish all OS labs in three month by yourself
  90. Apprentice: Finish all OS labs in one semester with other guy's help
  91. RESOURCE REPOSITORY
  92. ===================
  93. Basic OS labs (for students who learn OS course)
  94. The newest lab codes and docs is in https://github.com/chyyuu/ucore_lab
  95. Advanced OS labs (for OS geeks or hackers or guys with Superman/Master Rank)
  96. The newest lab codes and docs is in https://github.com/chyyuu/ucore_plus
  97. LEARNING DISSCUSS GROUPS
  98. ========================
  99. OS course for Yao class, fall, 2013
  100. ----------------------------------
  101. OS course for Yao class discuss site is in https://piazza.com/class/hlhc2vatkon361
  102. general discuss
  103. --------------------------------
  104. If you have any questions about ucore basic os labs,
  105. you can subscribe to the Google Groups "os-course" group (http://groups.google.com/group/oscourse?hl=en.)
  106. To post to this group, send email to oscourse@googlegroups.com.
  107. To unsubscribe from this group, send email to oscourse+unsubscribe@googlegroups.com.
  108. For more options, visit this group at http://groups.google.com/group/oscourse?hl=en.
  109. DEVELOPMENT DISCUSS GROUPS
  110. ==========================
  111. If you have any questions about ucore advanced os labs,
  112. If you want to be a developer of ucore or pay attention to the development of ucore,
  113. you can subscribe to the Google Groups "ucore_dev" group (http://groups.google.com/group/ucore_dev?hl=en.)
  114. To post to this group, send email to ucore_dev@googlegroups.com.
  115. To unsubscribe from this group, send email to ucore_dev+unsubscribe@googlegroups.com.
  116. For more options, visit this group at http://groups.google.com/group/ucore_dev?hl=en.
  117. UCORERS (Contributors)
  118. ======================
  119. Junjie Mao, Yuheng Chen, Cong Liu, Yang Yang, Zhun Qu, Shengwei Ren, Wenlei Zhu, Cao Zhang, Tong Sen, Xu Chen,
  120. Cang Nan, Yujian Fang, Wentao Han, Kaichen Zhang, Xiaolin Guo, Tianfan Xue, Gang Hu, Cao Liu, Yu Su,Xinhao Yuan, ...