1 /*
2  * Copyright (c) 2021, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef SYS_REG_TRACE_H
8 #define SYS_REG_TRACE_H
9 
10 #include <context.h>
11 
12 #if ENABLE_SYS_REG_TRACE_FOR_NS
13 #if __aarch64__
14 void sys_reg_trace_enable(cpu_context_t *context);
15 #else
16 void sys_reg_trace_enable(void);
17 #endif /* __aarch64__ */
18 
19 #else /* !ENABLE_SYS_REG_TRACE_FOR_NS */
20 
21 #if __aarch64__
sys_reg_trace_enable(cpu_context_t * context)22 static inline void sys_reg_trace_enable(cpu_context_t *context)
23 {
24 }
25 #else
sys_reg_trace_enable(void)26 static inline void sys_reg_trace_enable(void)
27 {
28 }
29 #endif /* __aarch64__ */
30 #endif /* ENABLE_SYS_REG_TRACE_FOR_NS */
31 
32 #endif /* SYS_REG_TRACE_H */
33