I think all is in the title.
When in secure, reading the SCR register with MRC will succeed. But in non secure state, the MRC fails and I don't get any undef or abort.
Is it my mistake here ? Or it can be "sensed" differently without crashing ?
Thanks for any hint.
I think this is the idea behind secure/non-secure that the non-secure mode cannot determine if it is in non-secure mode (it would be a security breach).
Would it be so ? No idea here...
I just finally succeeded checking this on my Raspberry PI2 and I triggered an undef exception (non secure) when attempting a read of the SCR. That's somehow consistent, and helpful since it can be recovered.
Thanks.
Yepp, that is the meaning of "Only accessible from Secure PL1 modes." in the TRM ;-)The secure software detects an attempt of a security breach in the non-secure SW.