mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 00:16:17 +04:00
Rust version of THU uCore OS. Linux compatible.
crate | ||
docker | ||
docs | ||
macOS-env | ||
riscv-env | ||
riscv-pk | ||
src | ||
user | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
build.rs | ||
Cargo.toml | ||
Makefile | ||
README.md | ||
riscv32-blog_os.json | ||
status.md | ||
x86_64-blog_os.json | ||
Xargo.toml |
RustOS
Port to RISCV (WIP)
2018年THU计算机系统综合实验
Environment
Dockerfile (Can not build directly. Just for reference)
Available on DockerHub: wangrunji0408/riscv-rust
How to run
git clone https://github.com/wangrunji0408/RustOS.git -b riscv --recursive
cd RustOS
# Pull docker image and enter docker interactive shell
make docker_riscv
# Inside docker ...
# Patch the atomic mod of core lib
make patch-core
make build
make justrun
Summary
A project of THU OS2018 spring.
The goal is to write a mini OS in Rust with multicore supporting.
It will start from the post of the Writing an OS in Rust series. Then reimplement xv6-x86_64 in Rust style.
Building
You need to have nasm
, grub-mkrescue
, xorriso
, qemu
, a nightly Rust compiler, and xargo
installed. Then you can run it using make run
.
A docker image is available and recommanded. Read this for details.
License
The source code is dual-licensed under MIT or the Apache License (Version 2.0).