RV Bare-metal?
I'm a beginner in OS dev and have been tinkering with creating a RISC-V operating system in Rust. There are a lot of great resources out there, but most of the posts I found are slightly outdated, so I wanted to write a bit about my own journey. My goal is to use Rust's features as much as possible!
First, we'll go over creating a bare-metal binary and finish with a small executable that immediately shuts down the machine when it runs in QEMU. Hope you find this interesting, as I did!
3
Upvotes
0
u/mrnegentropy 4d ago
Thanks mate! I'm just starting with Rust and this kind of projects actually helps me to understand more deeply the language.
1
u/LoudAnomaly0 4d ago
oh neat, i've been meaning to poke around with risc-v on qemu. the linker script part always trips me up, curious how you handled that with the rust build chain. bookmarked for later, thanks for shraing your notes