I am working on the trust zone extension on raspberry pi B+ which has the ARM1176JZF-S processor.
The smc (Secure Monitor Call) instruction used to switch between worlds is of form :
"SMC #imm4" eg : smc #0
I am trying to retrive this value from the smc exception handler. My initial assumption was that this might be stored in the R0 register. But I am getting some different value than the one I passed. So where is this value stored ?