You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
WangRunji 87b7ea523b
Experimental patch for core::sync::atomic on RISCV32I
6 years ago
crate Timer interrupt 6 years ago
docker Rewrite README. Add docker. 7 years ago
docs Experimental patch for core::sync::atomic on RISCV32I 6 years ago
macOS-env Add homebrew files for macOS 7 years ago
riscv-env Update dockerfile 6 years ago
riscv-pk Add riscv-pk from ucore_os_lab 6 years ago
src Experimental patch for core::sync::atomic on RISCV32I 6 years ago
user Add ucore & xv6-x86_64 user program img file. 7 years ago
.gitignore Generate vector.asm by build.rs. 7 years ago
.gitmodules Fork crate `riscv` as a submodule 6 years ago
.travis.yml Try to update travis 6 years ago
Cargo.toml Change target arch to RISCV32IMA. Recover some dependencies. 6 years ago
Makefile Experimental patch for core::sync::atomic on RISCV32I 6 years ago
README.md Add build guide. 6 years ago
Xargo.toml Clear all code, make it compile for RISCV in docker. 6 years ago
build.rs Add bbl as bootloader 6 years ago
riscv32-blog_os.json Experimental patch for core::sync::atomic on RISCV32I 6 years ago
status.md Update report 7 years ago
x86_64-blog_os.json Set the panic strategy to abort to fix _Unwind_Resume errors 7 years ago

README.md

RustOS

Port to RISCV (WIP)

2018年THU计算机系统综合实验

Project Wiki

Documents

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 ...
make build
make justrun

Summary

Build Status

A project of THU OS2018 spring.

Project Wiki

MidReport

FinalReport

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).