diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2014-09-17 14:53:41 -0700 |
---|---|---|
committer | Jerome Forissier <jerome.forissier@linaro.org> | 2014-09-18 11:41:45 -0700 |
commit | 52628354dd1abe34a045cf40cf4e7eeb87053188 (patch) | |
tree | b3622d7812c2fea3613eae3da252ce28cb22f026 /core/arch/arm32/tee | |
parent | 29f1a45d7e068f74c162a64b212956e57885f535 (diff) |
Trace syscall entry when CFG_TEE_CORE_LOG_LEVEL == TRACE_FLOW (5)
Diffstat (limited to 'core/arch/arm32/tee')
-rw-r--r-- | core/arch/arm32/tee/tee_svc_asm.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/arch/arm32/tee/tee_svc_asm.S b/core/arch/arm32/tee/tee_svc_asm.S index 75a1954..d661d29 100644 --- a/core/arch/arm32/tee/tee_svc_asm.S +++ b/core/arch/arm32/tee/tee_svc_asm.S @@ -25,6 +25,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include "tee_syscall_numbers.h" +#include "tee_trace_levels.h" .global tee_svc_enter_user_mode .global tee_svc_sys_return @@ -87,6 +88,12 @@ tee_svc_syscall: * * System call number is passed in r7. */ +#if (CFG_TEE_CORE_LOG_LEVEL == TRACE_FLOW) + push {r0-r3} + mov r0, r7 + blx _trace_syscall + pop {r0-r3} +#endif ldr r12, =tee_svc_syscall_table cmp r7, #TEE_SCN_MAX /* Either syscall function should return to cleanup (.Lret) */ |