blob: 5915c5547a9788cfc55f596a3eb1d5abb5599c76 [file] [log] [blame]
Manish V Badarkhef356f7e2021-06-29 11:44:20 +01001/*
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
Andre Przywara44e33e02022-11-17 16:42:09 +000012#if ENABLE_SYS_REG_TRACE_FOR_NS
Manish V Badarkhef356f7e2021-06-29 11:44:20 +010013#if __aarch64__
14void sys_reg_trace_enable(cpu_context_t *context);
15#else
16void sys_reg_trace_enable(void);
17#endif /* __aarch64__ */
18
Andre Przywara44e33e02022-11-17 16:42:09 +000019#else /* !ENABLE_SYS_REG_TRACE_FOR_NS */
20
21#if __aarch64__
22static inline void sys_reg_trace_enable(cpu_context_t *context)
23{
24}
25#else
26static inline void sys_reg_trace_enable(void)
27{
28}
29#endif /* __aarch64__ */
30#endif /* ENABLE_SYS_REG_TRACE_FOR_NS */
31
Manish V Badarkhef356f7e2021-06-29 11:44:20 +010032#endif /* SYS_REG_TRACE_H */