Line data Source code
1 0 : /*
2 : * Copyright (c) 2021, Nordic Semiconductor ASA
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_FPU_H_
8 : #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_FPU_H_
9 :
10 : #include <stdint.h>
11 : #include <stdbool.h>
12 :
13 0 : struct fpu_ctx_full {
14 0 : uint32_t caller_saved[16];
15 0 : uint32_t callee_saved[16];
16 0 : uint32_t fpscr;
17 0 : bool ctx_saved;
18 : };
19 :
20 : void z_arm_save_fp_context(struct fpu_ctx_full *buffer);
21 : void z_arm_restore_fp_context(const struct fpu_ctx_full *buffer);
22 :
23 : #endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_FPU_H_ */
|