Skip to content

Commit

Permalink
add rustsbi info
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyuu committed Jan 18, 2021
1 parent 30e29ca commit e2d23f4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
14 changes: 13 additions & 1 deletion source/appendix-c/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@

.. toctree::
:hidden:
:maxdepth: 4
:maxdepth: 4

RISC-V指令集的SBI标准规定了类Unix操作系统之下的运行环境规范。这个规范拥有多种实现,RustSBI是它的一种实现。

RISC-V架构中,存在着定义于操作系统之下的运行环境。这个运行环境不仅将引导启动RISC-V下的操作系统, 还将常驻后台,为操作系统提供一系列二进制接口,以便其获取和操作硬件信息。 RISC-V给出了此类环境和二进制接口的规范,称为“操作系统二进制接口”,即“SBI”。

SBI的实现是在M模式下运行的特定于平台的固件,它将管理S、U等特权上的程序或通用的操作系统。

RustSBI项目发起于鹏城实验室的“rCore代码之夏-2020”活动,它是完全由Rust语言开发的SBI实现。 现在它能够在支持的RISC-V设备上运行rCore教程和其它操作系统内核。

RustSBI项目的目标是,制作一个从固件启动的最小Rust语言SBI实现,为可能的复杂实现提供参考和支持。 RustSBI也可以作为一个库使用,帮助更多的SBI开发者适配自己的平台,以支持更多处理器核和片上系统。

当前项目实现源码:https://github.com/luojia65/rustsbi
9 changes: 8 additions & 1 deletion source/chapter1/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@
.bss [0x80033000, 0x80033000)
Panicked at src/main.rs:46 Shutdown machine!
除了 ``Hello, world!`` 之外还有一些额外的信息,最后关机。
除了 ``Hello, world!`` 之外还有一些额外的信息,最后关机。


.. note::

RustSBI是啥?

:doc:`../appendix-c/index` 可以进一步了解RustSBI。

0 comments on commit e2d23f4

Please sign in to comment.