Let's write an OS which can run on RISC-V in Rust from scratch!
Go to file
2021-06-13 00:10:24 +08:00
bootloader Bump rustsbi to 0.2.0-alpha.1[81d53d8] 2021-04-05 16:29:31 +08:00
easy-fs Fixed a bug that the efs lock was not be held correctly 2021-04-15 12:10:06 +08:00
easy-fs-fuse Merge updates from ch7 2021-02-28 06:38:13 +08:00
os Downgrade cargo-binutils to 0.2.0 2021-04-05 16:29:31 +08:00
user Link small sections in linker 2021-04-05 16:29:31 +08:00
.dockerignore Add Ubuntu18.04 docker 2021-02-28 06:34:15 +08:00
.gitignore Refactor easy-fs 2021-02-24 03:42:45 +08:00
Dockerfile Add Ubuntu18.04 docker 2021-02-28 06:34:15 +08:00
LICENSE Initial commit 2020-10-29 15:21:09 +08:00
Makefile Add Ubuntu18.04 docker 2021-02-28 06:34:15 +08:00
README.md Update README.md 2021-06-13 00:10:24 +08:00
rust-toolchain Update os/Makefile && Update rust to 2021-01-30 2021-02-02 18:03:38 +08:00

rCore-Tutorial-v3

rCore-Tutorial version 3.5. See the Documentation in Chinese.

Overview

This project aims to show how to write an Unix-like OS running on RISC-V platforms from scratch in Rust for beginners without any background knowledge about computer architectures, assembly languages or operating systems.

Features

  • Platform supported: qemu-system-riscv64 simulator or dev boards based on Kendryte K210 SoC such as Maix Dock
  • OS
    • concurrency of multiple processes
    • preemptive scheduling(Round-Robin algorithm)
    • dynamic memory management in kernel
    • virtual memory
    • a simple file system with a block cache
    • an interactive shell in the userspace
  • only 4K+ LoC
  • A detailed documentation in Chinese in spite of the lack of comments in the code(English version is not available at present)