Jun 16, 2021
05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 16, 2021
05:23 AM
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
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
- Tags:
- IFX
2 Replies
Jun 16, 2021
07:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 16, 2021
07:08 AM
That's part of the magic of operating systems. For PSW.PRS, that's generally part of a task's context, and the CSA is manipulated by an operating system when the task is created.
Without a real OS, hacking the CSA sounds in a SYSCALL trap handler like a good enough alternative.
Without a real OS, hacking the CSA sounds in a SYSCALL trap handler like a good enough alternative.
Mar 09, 2023
10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2023
10:36 PM
Hi @User22023 how did you switch to user mode?
This widget could not be displayed.