We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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!