arm-trusted-firmware/include/lib/extensions/fpmr.h
Arvind Ram Prakash a57e18e433 feat(fpmr): disable FPMR trap
This patch enables support of FEAT_FPMR by enabling access
to FPMR register. It achieves it by setting the EnFPM bit of
SCR_EL3. This feature is currently enabled for NS world only.

Reference:
https://developer.arm.com/documentation/109697/2024_09/
Feature-descriptions/The-Armv9-5-architecture-extension?lang=en

Change-Id: I580c409b9b22f8ead0737502280fb9093a3d5dd2
Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
2024-12-12 10:03:23 -06:00

20 lines
402 B
C

/*
* Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef FPMR_H
#define FPMR_H
#include <context.h>
#if ENABLE_FEAT_FPMR
void fpmr_enable_per_world(per_world_context_t *per_world_ctx);
#else
static inline void fpmr_enable_per_world(per_world_context_t *per_world_ctx)
{
}
#endif /* ENABLE_FEAT_FPMR */
#endif /* FPMR_H */