Hello Expert
I want to know if current running app is privilege mode or not.
The simplest way is check MSR but if it is not privilege mode, Program Exception occurs.
Is there a safe way to check which the mode without Exception or Interrupt?
Thank you
Jaejyn
You will have to temporarily switch into supervisor mode by system call instruction that invokes IVOR8 exception and copies actual MSR content to SRR1 register.