register MCM_PID in user task

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

register MCM_PID in user task

1,831件の閲覧回数
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 返答(返信)

1,787件の閲覧回数
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 件の賞賛
返信

1,782件の閲覧回数
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 件の賞賛
返信

1,758件の閲覧回数
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 件の賞賛
返信

1,751件の閲覧回数
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 件の賞賛
返信