1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-21 23:56:18 +04:00
Rust version of THU uCore OS. Linux compatible.
Go to file
2018-10-19 23:37:10 +08:00
crate Add docs for thread::spawn() 2018-09-22 17:32:16 +08:00
docs Reorganize docs. 2018-10-19 23:37:10 +08:00
kernel Merge branch 'rv32-smp-porting' into dev 2018-10-19 23:36:15 +08:00
riscv-pk Switch to RV64 GNU toolchain. Simplify compiler_rt. 2018-10-19 23:35:38 +08:00
user Fix user project for new toolchain 2018-08-05 10:41:51 +08:00
.gitignore Fix x86_64. Not elegant. 2018-08-05 17:50:56 +08:00
.gitmodules Fork crate riscv as a submodule 2018-07-05 14:17:30 +08:00
.travis.yml Update README, travis, riscv crate. 2018-09-19 20:58:00 +08:00
README.md Remove root Makefile. Add dev docs link. 2018-09-20 21:13:47 +08:00
status.md Update report 2018-06-15 11:50:51 +08:00

RustOS

Build Status

Rust port for uCore OS, supporting x86_64 and riscv32i.

Dev docs (in Chinese)

Summary

This is a project of THU Operating System (2018 Spring) && Comprehensive Experiment of Computer System (2018 Summer).

Project wiki (internal access only): OS, CECS

Reports (in Chinese): MidReport, FinalReport, RISCV port note

The initial goal is to write a mini OS in Rust with multi-core support. More specifically, it would start from the post of the Writing an OS in Rust series, then reimplement xv6-x86_64 in Rust style.

In fact, it's more complicated than we expected to write an OS starting from scratch. So by the end of OS course, we only finished rewriting ucore_os_lab, without multi-core support. Then as a part of CECS project, we ported it from x86_64 to RISCV32I, and made it work on our FPGA CPU.

Building

Environment

How to run

rustup component add rust-src
cargo install cargo-xbuild bootimage
git clone https://github.com/wangrunji0408/RustOS.git --recursive
cd RustOS/kernel
rustup override set nightly-2018-09-18
make run arch=riscv32|x86_64
# For FPGA: 
# make run arch=riscv32 board=1

License

The source code is dual-licensed under MIT or the Apache License (Version 2.0).