mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 05:54:08 +00:00

Currently, EL3 context registers are duplicated per-world per-cpu. Some registers have the same value across all CPUs, so this patch moves these registers out into a per-world context to reduce memory usage. Change-Id: I91294e3d5f4af21a58c23599af2bdbd2a747c54a Signed-off-by: Elizabeth Ho <elizabeth.ho@arm.com> Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
28 lines
677 B
C
28 lines
677 B
C
/*
|
|
* Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef SVE_H
|
|
#define SVE_H
|
|
|
|
#include <context.h>
|
|
|
|
#if (ENABLE_SME_FOR_NS || ENABLE_SVE_FOR_NS)
|
|
void sve_init_el2_unused(void);
|
|
void sve_enable_per_world(per_world_context_t *per_world_ctx);
|
|
void sve_disable_per_world(per_world_context_t *per_world_ctx);
|
|
#else
|
|
static inline void sve_init_el2_unused(void)
|
|
{
|
|
}
|
|
static inline void sve_enable_per_world(per_world_context_t *per_world_ctx)
|
|
{
|
|
}
|
|
static inline void sve_disable_per_world(per_world_context_t *per_world_ctx)
|
|
{
|
|
}
|
|
#endif /* ( ENABLE_SME_FOR_NS | ENABLE_SVE_FOR_NS ) */
|
|
|
|
#endif /* SVE_H */
|