Crate os

source · [−]
Expand description

The main module and entrypoint

The operating system and app also starts in this module. Kernel code starts executing from entry.asm, after which rust_main() is called to initialize various pieces of functionality clear_bss(). (See its source code for details.)

We then call println! to display Hello, world!.

Modules

board 🔒
console 🔒

SBI console driver, for text output

lang_items 🔒

The panic handler

logging 🔒

Global logger

sbi 🔒

SBI call wrappers

Macros

Print! to the host console using the format string and arguments.

Println! to the host console using the format string and arguments.

Functions

clear BSS segment

the rust entry-point of os