mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

This patch adds trbe_disable() which disables Trace buffer access from lower ELs in all security state. This function makes Secure state the owner of Trace buffer and access from EL2/EL1 generate trap exceptions to EL3. Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com> Change-Id: If3e3bd621684b3c28f44c3ed2fe3df30b143f8cd
28 lines
520 B
C
28 lines
520 B
C
/*
|
|
* Copyright (c) 2021-2024, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef TRBE_H
|
|
#define TRBE_H
|
|
|
|
#include <context.h>
|
|
|
|
#if ENABLE_TRBE_FOR_NS
|
|
void trbe_disable(cpu_context_t *ctx);
|
|
void trbe_enable(cpu_context_t *ctx);
|
|
void trbe_init_el2_unused(void);
|
|
#else
|
|
static inline void trbe_disable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
static inline void trbe_enable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
static inline void trbe_init_el2_unused(void)
|
|
{
|
|
}
|
|
#endif /* ENABLE_TRBE_FOR_NS */
|
|
|
|
#endif /* TRBE_H */
|