If SOC is ARMV8-M Mainline.
If a secure world api called within a none-secure world IRQ handler, after enter the secure state, What the mode the CPU is? Handler mode or Thread mode? and if it is handler mode, dose still the MSP is the SP used by CPU.
For example.
1) In none-secure world, issue a SVC call, 2) CPU enter the none-secure world SVC handler, 3) in the SVC handler, call to a secure-world method
4) cpu change to secure state and execute the method being called, at this moment what the CPU mode is, still handler mode or others.
Thanks!
View all questions in TrustZone for Armv8-M forum