register MCM_PID in user task

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

register MCM_PID in user task

627 次查看
Yellen
Contributor II

Hi,

I want to use PID to define different access rights for different user tasks. It seems that I should dynamicly change the MCM_PID reigster.

Referring to the RM for S32K1xx, it says the MCM_PID is accessible only in Supervisor mode. While the user tasks are running at user mode. How can I change the MCM_PID in user tasks?

Best Regards,

Yellen

标记 (2)
0 项奖励
回复
4 回复数

583 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you clarify where it is stated that MCM_PID can be accesses only in supervisor mode? In my opinion it is accessed in both modes.

0 项奖励
回复

578 次查看
Yellen
Contributor II

Hi David,

Thanks. 

It lies in Section 10.3 of S32K1xx Series Reference Manual, Rev. 12.1, 02/2020.

Snipaste_2023-06-13_17-38-20.png

0 项奖励
回复

554 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have been confirmed that if application is in user mode, it can not change MCM_PID. Usually, the value of MCM_PID should be defined in supervisor mode.

0 项奖励
回复

547 次查看
Yellen
Contributor II

So will there be a way to define different values of MCM_PID for user application? Like a lib function that could change to supervisor mode and modify the MCM_PID, then return to user mode?

0 项奖励
回复