This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARMv7 how a program can check whether it is in secure state or not ?

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.