Skip to main content

Crate os

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ยง

console ๐Ÿ”’
SBI console driver, for text output
lang_items ๐Ÿ”’
The panic handler
logging ๐Ÿ”’
sbi ๐Ÿ”’

Macrosยง

linker_symbol_addr ๐Ÿ”’
print
print string macro
println
println string macro

Functionsยง

clear_bss
clear BSS segment
rust_main
the rust entry-point of os