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

Calling None-Secure method directly from Secure world

Hi:

    If CPU is in secure state, and calling the none-secure world method. Dose this allowed or it will generat a security fault

Parents
  • 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

Reply
  • 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

Children
No data