This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问什么是user mode和Supervisor mode?

您好!

本人刚开始学习C6678,看文档资料时有些疑问。

1. 请问什么是user mode和supervisor mode?

2.没有操作系统时,何时会处于user mode,何时又会处于supervisor mode?比如我想修改有关cache控制的寄存器,怎样才能进入supervisor mode?

3.在有操作系统的时候情况又会是怎样的呢?

谢谢!

  • 这是两种不同的权限,supervisor mode权限更高,user mode有很多限制,可以在两种模式之间进行切换,默认是supervisor mode,具体请参考C66x instruction set user guide SPRUGH section9 CPU privilege.