Go to file
cyp0633 8a4d1ffcad Merge pull request 'lab7' (#5) from lab7 into master
Reviewed-on: #5
2022-05-30 10:04:40 +08:00
bootloader upate rustsbi-qemu.bin 2021-01-05 22:21:18 +08:00
labcodes Change unpassable grader 2022-05-29 12:45:59 +08:00
labcodes_answer #85 issues: fix bug: tlb_invalidate 0x100 AND 0x100+PGSIZE 2020-06-27 00:06:15 +08:00
os add test info 2021-01-05 22:37:04 +08:00
related_info Update disksim-homework.md 2018-05-18 11:16:49 +08:00
.dir-locals.el Add a few configuration files for emacsers 2015-03-24 10:20:35 +08:00
.gitignore Merge lab 1-2 codes to lab 3 2022-04-30 10:15:07 +08:00
.travis.yml add travis script 2018-12-21 15:28:09 +08:00
LICENSE init -v4 2020-12-29 21:48:37 +08:00
README-chinese.md Update README-chinese.md 2020-06-25 15:22:33 +08:00
README.md Update README.md 2020-06-29 10:25:13 +08:00
opensource_os_list.md add open source OSes info 2015-07-02 00:42:38 +08:00
resources.md Update resources.md 2018-10-26 10:33:40 +08:00
rust-toolchain add hello world app in userland 2020-12-29 21:52:44 +08:00



ucore os labs was used as OS Experiments in OS Course Of Dept. of Computer Science & Technology, Tsinghua University.



OS course for Dept. CS. in Tsinghua Univ., and MOOC OS course


labs info

lab0: preparing
lab1: boot/protect mode/stack/interrupt
lab2: physical memory management
lab3: virtual memory management
lab4: kernel thread management
lab5: user process management
lab6: scheduling
lab7: mutex/sync
lab8: filesystem


UBUNTU 16.04 x86-64: GCC-7.3 
UBUNTU 14.04+: GCC-4.8.2+ CLANG-3.5+
FEDORA 20+: GCC-4.8.2+


0 Get the newest os lab src code/docs.(Insure you can connect to github in ubuntu running on VrtualBox)
0.1 If you try to get all code
  $rm -rf ucore_lab
  $git clone git://github.com/chyyuu/ucore_os_lab.git
  $cd ucore_lab
0.2 If you cloned ucore_lab and only try to get the updated code
  $cd ucore_os_lab
  $git pull
1 $cd labX  
2 read code (specially the modified or added files)
3 add your code
4 compile your code
5 check your code
  $make qemu
  $make grade

6 debug your code
  $make debug

7 handin your code
  $make handin


Now, ucore suuport LLVM/Clang-3.5 + in step4: $ USELLVM=1 make then you will use clang to compile ucore


Superman: Finish all OS labs in one month by yourself
Master: Finish all OS labs in two month by yourself
Veteran: Finish all OS labs in three month by yourself
Apprentice: Finish all OS labs in one semester with other guy's help


Basic OS labs (for students who learn OS course)
The newest lab codes and docs is in https://github.com/chyyuu/ucore_os_lab

Advanced OS labs (for OS geeks or hackers or guys with Superman/Master Rank)
The newest lab codes and docs is in https://github.com/chyyuu/ucore_plus

UCORERS (Contributors)

Junjie Mao, Yuheng Chen, Cong Liu, Yang Yang, Zhun Qu, Shengwei Ren, Wenlei Zhu, Cao Zhang, Tong Sen, Xu Chen, Cang Nan, Yujian Fang, Wentao Han, Kaichen Zhang, Xiaolin Guo, Tianfan Xue, Gang Hu, Cao Liu, Yu Su,Xinhao Yuan, Wei Zhang, Kaixiang Lei...

Join us, OS research group in Tsinghua Univ.

If you are interested in OS Research/Development, we welcome you to joining our OS research group:

  • OS performance improvement for multicore architecture
  • fuzzing/symbolic execution technologies on OS for finding kernel bugs
  • improving performance and reliability on OS subsystem, such as device driver
  • design OS specification and build correct OS
  • OS & CPU(such as RISC-Vcodesign
  • other topics about OS

Just like other great OS researchs

Send me email!


ucore is a teaching OS which is derived from xv6&jos in MIT, OS161 in Harvard and Linux.

ucore was developed and used in Department of Computer Science & Technology, Institute for Interdisciplinary Information Sciences, Tsinghua University.

The codes in the files that constitute xv6&jos are Copyright (2006-Current) Frans Kaashoek, Robert Morris, and Russ Cox and uses MIT License.

The codes in the files that constitute OS/161 are written by David A. Holland.

The codes in the files that constitute ucore are Copyright (2010-Current) Yu Chen, Naizheng Wang, Yong Xiang and uses GPL License.

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.