OS & Hardware
Which set of operating modes is defined by the RISC-V privileged architecture?
- AMachine mode, supervisor mode and user mode
- BReal mode, protected mode and long mode
- CAddress mode, data mode and instruction mode
Show answer and explanation
Answer: A. Machine mode, supervisor mode and user mode
The RISC-V privileged architecture defines machine mode (M), the most privileged; supervisor mode (S), where the OS kernel runs; and user mode (U), where applications run. Machine mode is always implemented, and power-on code and firmware run there. Small microcontrollers typically have only M and U, while systems running an OS have M, S and U; the virtualization extension adds hypervisor modes. Real, protected and long modes are x86 terms.
- A. Correct. The three modes M, S and U.
- B. These are x86 operating-mode terms.
- C. No such mode classification exists.