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
Thanks for your explanation.
I use GICD_IGROUPRn to check, it can work.