Expand description
The main module and entrypoint
Various facilities of the kernels are implemented as submodules. The most important ones are:
trap: Handles all cases of switching from userspace to the kernelsyscall: System call handling and implementation
The operating system also starts in this module. Kernel code starts
executing from entry.asm, after which rust_main() is called to
initialize various pieces of functionality. (See its source code for
details.)
We then call batch::run_next_app() and for the first time go to
userspace.
Modulesยง
- batch
- batch subsystem
- console ๐
- SBI console driver, for text output
- lang_
items ๐ - The panic handler
- logging ๐
- sbi ๐
- SBI call wrappers
- sync ๐
- Synchronization and interior mutability primitives
- syscall
- Implementation of syscalls
- trap
- Trap handling functionality
Macrosยง
- linker_
symbol_ ๐addr - print string macro
- println
- println string macro