I am using zynq-7000(zed board) with A9 processor (dual core). I am trying to work with the Trustzone.
I want to configure cpu1 to be running only in the secure world and cpu0 to be running a normal world application (petalinux). I read ug1019 and some other documents, but I could not get an idea about how to achieve this. I found this,
MRC p15,0,<Rt>,c1,c1,0 ; Read SCR into Rt
MCR p15,0,<Rt>,c1,c1,0 ; Write Rt to SCR
where I can configure the NS bit, but I am not sure if it will work and it will put which cpu to secure/non-secure state. If some one can guide me to some example or idea.