Skip to content

Commit 88f56ef

Browse files
committed
modules: trusted-firmware-m: Update in interface implementation
Following changes to arch/arm/core/cortex_m/fpu.c, the dependency on CONFIG_FPU_SHARING is moved into this file. Signed-off-by: Michele Sardo <michele.sardo@st.com>
1 parent 83f2101 commit 88f56ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/trusted-firmware-m/interface/interface.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,17 @@ int32_t tfm_ns_interface_dispatch(veneer_fn fn,
5353
#endif
5454
}
5555

56+
#if defined(CONFIG_FPU_SHARING)
5657
struct fpu_ctx_full context_buffer;
5758

5859
z_arm_save_fp_context(&context_buffer);
60+
#endif
5961

6062
result = fn(arg0, arg1, arg2, arg3);
6163

64+
#if defined(CONFIG_FPU_SHARING)
6265
z_arm_restore_fp_context(&context_buffer);
66+
#endif
6367

6468
if (!isr_mode) {
6569
#if !defined(CONFIG_ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS)

0 commit comments

Comments
 (0)