rcore-os / rCore-Tutorial-Book-v3

A book about how to write OS kernels in Rust easily.
https://rcore-os.github.io/rCore-Tutorial-Book-v3/
GNU General Public License v3.0
1.23k stars 233 forks source link

ra is a callee-saved register #180

Closed h888866j closed 1 year ago

h888866j commented 1 year ago

ra is a callee-saved register, but it was once written as Caller-saved register in the book, ch1. Fixed it.. image

wyfcyx commented 1 year ago

According to risc-v calling convention, ra is a caller-saved register.