My platform has a Cortex-A9 MPCore cpu, It supports trustzone tech.
I want to change NSACR.TL bit, but It need in secure state.
I want to change non-secure state to secure state by entering monitor mode using smc.
But It is not easy to understand how to use smc by reading ARM reference manual.
So, is there any sample code? or would you give some suggestions about this problem?
You need to have a monitor running and then this monitor needs to have a special "call" to allow you to do what you want.If you are running bare metal, you likely start in secure mode.