This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to obtain ARMv8 CPU is secure or non-secure under EL1?

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

Parents Reply Children