Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User22023
Level 1
Level 1
5 questions asked First reply posted First question asked
Hi all,

how can i change the CSFR´s when i´m in user mode? I´ve seen that with the syscall trap it is possible to get in the supervisor mode and now i want to change in the TrapHook for example the PSW.PRS bits but when i exit the syscall trap the upper and lower context is restored and so the changes are not accepted.
How can i make changes to the PSW and hold these changes after the rslcx and RFE at the end from the traphandler. I´ve tried to manipulate the CSA´s this worked, but i think this is not the way it has to be done.

BR Hennessy
0 Likes
3 Replies
Darren_Galpin
Employee
Employee
First solution authored First like received
In most cases you cannot, and this is a deliberate safety mechanism to prevent unintended access. You must switch to supervisor mode to change register settings by software.
0 Likes
indra
Level 1
Level 1
5 questions asked 5 replies posted 10 sign-ins

Hi @User22023  @Darren_Galpin , I have a question how did you switch to user mode

0 Likes
Vamshi_V
Level 1
Level 1
5 sign-ins First like given First reply posted

Hi, @User22023 did you find any solution about how to change CSFR when you're in user mode or can you please explain how did you manipulate the CSA to change the contents of PSW ??

0 Likes