Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justxuewei/project-rcore
Yet another rCore implementation by justxuewei
https://github.com/justxuewei/project-rcore
os rcore riscv rust
Last synced: 17 days ago
JSON representation
Yet another rCore implementation by justxuewei
- Host: GitHub
- URL: https://github.com/justxuewei/project-rcore
- Owner: justxuewei
- License: mit
- Created: 2022-04-13T14:32:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T09:09:27.000Z (about 2 years ago)
- Last Synced: 2024-10-17T05:56:00.223Z (2 months ago)
- Topics: os, rcore, riscv, rust
- Language: Rust
- Homepage:
- Size: 310 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project rCore
Yet another rCore implementation by justxuewei, the original version you may refer to [rcore-os/rCore-Tutorial-v3](https://github.com/rcore-os/rCore-Tutorial-v3).
## Contents
In this repo:
- [os](./src/os): rCore operatering system running on riscv64.
- [user](./src/user): user applications.
- ch1-exercises
- [ls](./src/ls): ls program, [reference](https://rcore-os.github.io/rCore-Tutorial-Book-v3/chapter1/7exercise.html).
- [backtrace](./src/backtrace): (WIP: encountered segmentation fault) backtrace using base pointer and frame pointer running on Linux x64, [reference](https://rcore-os.github.io/rCore-Tutorial-Book-v3/chapter1/7exercise.html).
- ch2-exercises
- backtrace: implemented at [stack_trace.rs](./src/os/src/stack_trace.rs).
- get-task-info: implemented at [os: syscall/task_info.rs](./src/os/src/syscall/task_info.rs) and [user: 05get_task_info.rs](./src/user/src/bin/05get_task_info.rs).
- app-elapsed-time: implemented at [batch::app_running_time](./src/os/src/batch.rs).
- syscall-times: implemented at [batch::stat_syscall](./src/os/src/batch.rs).Reviews (in chinese):
- [Project rCore: 地址空间](https://nxw.name/2022/address-space-introduction)
- [Project rCore: 进程](https://nxw.name/2022/project-rcore-process)
- [Project rCore: 文件系统](https://nxw.name/2022/project-rcore-file-system)
- [Project rCore: 进程间通讯](https://nxw.name/2022/project-rcore-ipc)## Tips
VSCode configs for riscv64 target to avoid `#![no_std]` warning.
```
// ref: https://github.com/rust-lang/vscode-rust/issues/729
// for rust extenstion:
{
"rust.target": "riscv64gc-unknown-none-elf",
"rust.all_targets": false
}// for rust-analyzer extenstion:
{
"rust-analyzer.cargo.target": "riscv64gc-unknown-none-elf",
"rust-analyzer.checkOnSave.allTargets": false
}
```Recommended extensions for VSCode
- rust-analyzer
- GitLens
- RISC-V Support
- Markdown All in One
- Makefile Tools