I am using Linaro's Android release on Juno r1. While the Android OS is running, i switched into EL3 by smc instruction. Then, in the smc handler of BL31, i want to read the value of SP_EL1 register in the Android to verify the current process in the OS. However, when i try to use inline assembly to read the register in the smc handler of BL31, I failed.
I think we have only one SP_EL1 register for both normal world and secure world. So maybe the trust firmware has saved the old SP_EL1 while entering secure world, am i correct? Then how can i get the
SP_EL1 value of the normal OS? I need it to get the information about current running process of the normal OS, or is there any other way to know which process is running in the normal OS from EL3?
Thanks so much for any help!
View all questions in Arm Development Platforms forum