Hi, @lukaszadrapa
As my understanding , according your solution we should dynamic change MCM_PID content.
we have descriptor 1(With PID 1,r/w/x) and descriptor 2(with PID 2,r). and when executing task1 set MCM_PID=1, and executing task 2 MCM_PID=2, like this for the same region we can have different assess right. If there is something wrong, please let me know .
but how to understand ''System software loads this register before passing control to a given user mode
process.'' this words in RM, if the interrupt comes, (with supervisor assess right ,like PendSV) also need setting the PID ?
or PID only used in user mode ?
another problem is when in task1 , a interrupt happened , will the interrupt still using the same assess right with Task 1? and when the interrupt finished, back to task1, how to judgement the assess right ?
if you have better solution, please share with us , thank you ~~
Joan