2 * FP/SIMD state saving and restoring
4 * Copyright (C) 2012 ARM Ltd.
5 * Author: Catalin Marinas <catalin.marinas@arm.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <linux/linkage.h>
22 #include <asm/assembler.h>
23 #include <asm/fpsimdmacros.h>
26 * Save the FP registers.
28 * x0 - pointer to struct fpsimd_state
30 ENTRY(fpsimd_save_state)
33 ENDPROC(fpsimd_save_state)
36 * Load the FP registers.
38 * x0 - pointer to struct fpsimd_state
40 ENTRY(fpsimd_load_state)
43 ENDPROC(fpsimd_load_state)
45 #ifdef CONFIG_ARM64_SVE
49 ENDPROC(sve_save_state)
52 sve_load 0, x1, x2, 3, x4
54 ENDPROC(sve_load_state)
60 #endif /* CONFIG_ARM64_SVE */