mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 12:34:19 +00:00

Refactor MPAM3_EL3 to be world-specific, eliminating redundant cross-CPU value duplication and reducing memory footprint. Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com> Change-Id: Iddf020a5462737e01ac35e4f2b2b204a8759fafb
26 lines
512 B
C
26 lines
512 B
C
/*
|
|
* Copyright (c) 2018-2023, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef MPAM_H
|
|
#define MPAM_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <context.h>
|
|
|
|
#if ENABLE_FEAT_MPAM
|
|
void mpam_enable_per_world(per_world_context_t *per_world_ctx);
|
|
void mpam_init_el2_unused(void);
|
|
#else
|
|
static inline void mpam_enable_per_world(per_world_context_t *per_world_ctx)
|
|
{
|
|
}
|
|
static inline void mpam_init_el2_unused(void)
|
|
{
|
|
}
|
|
#endif /* ENABLE_FEAT_MPAM */
|
|
|
|
#endif /* MPAM_H */
|