You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
175d72ae8b | 4 years ago | |
---|---|---|
.. | ||
.vscode | 4 years ago | |
src | 4 years ago | |
Cargo.lock | 4 years ago | |
Cargo.toml | 4 years ago | |
Makefile | 4 years ago | |
README.md | 4 years ago | |
kernel | 4 years ago | |
kernel8.img | 4 years ago |
README.md
Tutorial 03 - Hacky Hello World
tl;dr
Introducing global print!()
macros to enable "printf debugging" at the earliest; To keep tutorial
length reasonable, printing functions for now "abuse" a QEMU property that lets us use the RPi's
UART
without setting it up properly; Using the real hardware UART
is enabled step-by-step in
following tutorials.
Notable additions
src/console.rs
introduces interfaceTraits
for console commands.src/bsp/rpi.rs
implements the interface for QEMU's emulated UART.- The panic handler makes use of the new
print!()
to display user error messages.
Test it
QEMU is no longer running in assembly mode. It will from now on show the output of the console
.
$ make qemu
[...]
Hello from Rust!
Kernel panic: Stopping here.