1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-24 00:46:17 +04:00
Rust version of THU uCore OS. Linux compatible.
Go to file
2020-08-25 09:22:21 +08:00
.github/workflows Add mipsel back to github actions 2020-07-09 12:51:13 +08:00
crate/memory Remove unused code, async-ify semaphore 2020-06-30 17:24:26 +08:00
docs move libc-test doc out of README 2020-06-15 12:26:23 +08:00
kernel Only yield for timer interrupt 2020-07-09 12:50:06 +08:00
modules/hello_rust Bugfix: x86_64 module compilation failure (#20) 2019-10-10 01:43:37 +08:00
rboot@ea29a73dcf update rboot 2020-08-25 09:22:21 +08:00
tests Fix riscv32 testing 2019-05-03 15:17:06 +08:00
tools Bump rboot and user commit, update Cargo.lock and fix addr2line.py 2020-01-29 10:59:39 +08:00
user@6334274629 Fix compilation for mipsel 2020-07-06 00:20:16 +08:00
.gitignore add utimensat, fix touch 2020-04-25 23:05:40 +08:00
.gitmodules x86_64: switch from legacy BIOS to UEFI. use rboot as new bootloader 2019-09-04 10:37:31 +08:00
LICENSE update LICENSE 2020-02-01 13:26:38 +08:00
README.md Move arch specific code to arch 2020-06-30 12:27:29 +08:00
rust-toolchain Bump to nightly-2020-06-04 and use llvm_asm instead of asm 2020-06-15 16:56:21 +08:00

rCore

CI

Rust version of THU uCore OS Plus.

Going to be the next generation teaching operating system.

Supported architectures and boards:

  • x86_64(Tier 1): QEMU, PC (i5/i7)
  • RISCV32/64(Tier 2): QEMU, HiFive Unleashed
  • AArch64(Tier 2): QEMU, Raspberry Pi 3B+
  • MIPS32(Tier 3): QEMU, TrivialMIPS

demo

What's included

rCore has the following features:

  • Linux compatible syscall interface: run Linux userspace programs
  • Network stack
  • Simple file system
  • Signal system
  • Async IO
  • Kernel module

Building

Environment

Setup on Linux or macOS:

$ rustup component add rust-src llvm-tools-preview

Or use Docker container:

$ docker run -it -v $PWD:$PWD -w $PWD wangrunji0408/rcore

How to run

$ git clone https://github.com/rcore-os/rCore.git --recursive
$ cd rCore/user
$ make sfsimg PREBUILT=1 ARCH=x86_64
$ cd ../kernel
$ make run ARCH=x86_64 LOG=info

See Makefile for more usages.

Maintainers

Module Maintainer
x86_64 @wangrunji0408
RISC-V @jiegec
AArch64 (Raspi3) @equation314
MIPS @Harry_Chen @miskcoo
Memory, Process, File System @wangrunji0408
Network with drivers @jiegec
GUI @equation314

History

This is a project of THU courses:

Reports and Dev docs (in Chinese)

It's based on BlogOS , a demo project in the excellent tutorial Writing an OS in Rust (First Edition).

License

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