Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
Hi Experts,
I am developping linux kernel with ARMv8-A processor.
Kernel can work both secure EL1 and non-secure EL1.
How to obtain CPU state is secure or non-secure in kernel?
SCR_EL3[0] can indicate EL1/EL0 secure/non-secure state, but it can not be accessed in kernel.
Is there CPU register can be accessed in kernel to indicate secure or non-secure state?
Thanks for your attention!
Best Regards,
yan
Emmy0 said:How to obtain CPU state is secure or non-secure in kernel?
How about having an `SMC` to retrieve state via EL3?
Yes, If I can get EL3 exception source code, it is a solution via SMC to retieve EL.
Thanks for your help!