Blogs / Personal blogs

Stephen Marz

osblog.stephenmarz.com

Popular posts
4
Total points
845
HN comments
132
Rank
#2,685 personal

Visit osblog.stephenmarz.com → On Hacker News Nov 2019 – May 2020

Systems & Performance 4Software Engineering 4

3

Writing a RISC-V OS in Rust: System Calls

System calls are a way for unprivileged, user applications to request services from the kernel. In the RISC-V architecture, we invoke the call using the ecall instruction. This will cause the CPU to halt what it's doing, elevate privilege modes, and then jump to whatever function handler is stored in the mtvec…