What is "u mode" and "s mode"? #45
-
The What is meant by "start hart in u mode or s mode"? And are there any examples of using these commands? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This is for future use. Bare metal apps are only currently supporting m-mode. The roadmap has addition of s-mode support in the bare metal examples later this year. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @mallynch. What exactly do "m-mode", "s-mode", and "u-mode" all mean? I'm a bit new to this type of work. |
Beta Was this translation helpful? Give feedback.
-
Hi @plwalsh , modes are a mechanism which facilitates separating software into privilege's levels, m-mode being the most privileged. Follow the following link for an introduction: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the link! I'll give it a read through for a better understanding. |
Beta Was this translation helpful? Give feedback.
Hi @plwalsh , modes are a mechanism which facilitates separating software into privilege's levels, m-mode being the most privileged. Follow the following link for an introduction:
https://www.five-embeddev.com/riscv-isa-manual/latest/priv-intro.html