We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi:
If CPU is in secure state, and calling the none-secure world method. Dose this allowed or it will generat a security fault
For Armv8-M, Secure code can call Non-secure functions (using BLXNS instruction).
When this happen, the return address is automatically pushed to Secure stack, the and LR (link register) is updated to a special value called FNC_RETURN (function return. When Non-secure function ended and return with FNC_RETURN, the real return address is extract from Secure stack.
With this method, it is not possible for Non-secure world to modify the actual return address.
regards,
Joseph