1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * FP/SIMD state saving and restoring
5 * Copyright (C) 2012 ARM Ltd.
6 * Author: Catalin Marinas <catalin.marinas@arm.com>
9 #include <linux/linkage.h>
11 #include <asm/assembler.h>
12 #include <asm/fpsimdmacros.h>
15 * Save the FP registers.
17 * x0 - pointer to struct fpsimd_state
19 ENTRY(fpsimd_save_state)
22 ENDPROC(fpsimd_save_state)
25 * Load the FP registers.
27 * x0 - pointer to struct fpsimd_state
29 ENTRY(fpsimd_load_state)
32 ENDPROC(fpsimd_load_state)
34 #ifdef CONFIG_ARM64_SVE
38 ENDPROC(sve_save_state)
41 sve_load 0, x1, x2, 3, x4
43 ENDPROC(sve_load_state)
49 #endif /* CONFIG_ARM64_SVE */