rcore-step-by-step
  • 0. 从零开始写 OS
  • 1. 独立式可执行程序
  • 2. 最小化内核
  • 3. 格式化输出
  • 4. 实现中断
    • 4.1.1 Trap
    • 4.1.2 中断跳转
    • 4.2. 时钟中断
  • 5. 页表简介
  • 6. 内存分配
  • 7. 创建页表
  • 8. 内核线程
  • 9. 线程调度
  • 10. 用户进程
  • 11. 命令行
    • 11.1. 命令行——输出
    • 11.2. 命令行——输入(信号量)
    • 11.3. 命令行——执行程序
Powered by GitBook
On this page
  • 前言
  • 如何使用
  • reference
  • rCore Summer of Code 2019

Was this helpful?

0. 从零开始写 OS

Next1. 独立式可执行程序

Last updated 5 years ago

Was this helpful?

前言

本系列文章记录了使用 Rust 编程语言编写一个小型操作系统的详细过程。每篇文章包含所需所有所需代码和相关知识点讲解。

如何使用

为了方便起见,建议使用 ,可以省去配置环境的功夫。

在工作目录下创建 Makefile :

docker:
    sudo docker run -it --mount type=bind,source=$(shell pwd)/..,destination=/mnt panqinglin/rust_riscv bash

进入 docker 后,执行 cd mnt ,即可看见工作目录,然后就可以开始写代码啦!

每一章或小节对应的源代码可以在 的 commit 中找到, 且 commit log 与每一篇文章的主标题或副标题内容大致对应。

reference

  • ..

rCore Summer of Code 2019

代码
文档
docker
GitHub
https://github.com/rcore-os/rCore
https://github.com/oscourse-tsinghua/rcore_plus/tree/lab8-rv32-tinyfs
https://github.com/chyyuu/rcore_plus/tree/lab1-rv32-interrupt
https://github.com/chyyuu/rcore_plus/tree/lab8-rv32-fs
https://github.com/LearningOS/rcore_step_by_step/wiki/rCore-Summer-of-Code