staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / arch / arm64 / kernel / entry-fpsimd.S
blob0f24eae8f3cceccee6bf4f20b19eb31d4e67ce83
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * FP/SIMD state saving and restoring
4  *
5  * Copyright (C) 2012 ARM Ltd.
6  * Author: Catalin Marinas <catalin.marinas@arm.com>
7  */
9 #include <linux/linkage.h>
11 #include <asm/assembler.h>
12 #include <asm/fpsimdmacros.h>
15  * Save the FP registers.
16  *
17  * x0 - pointer to struct fpsimd_state
18  */
19 ENTRY(fpsimd_save_state)
20         fpsimd_save x0, 8
21         ret
22 ENDPROC(fpsimd_save_state)
25  * Load the FP registers.
26  *
27  * x0 - pointer to struct fpsimd_state
28  */
29 ENTRY(fpsimd_load_state)
30         fpsimd_restore x0, 8
31         ret
32 ENDPROC(fpsimd_load_state)
34 #ifdef CONFIG_ARM64_SVE
35 ENTRY(sve_save_state)
36         sve_save 0, x1, 2
37         ret
38 ENDPROC(sve_save_state)
40 ENTRY(sve_load_state)
41         sve_load 0, x1, x2, 3, x4
42         ret
43 ENDPROC(sve_load_state)
45 ENTRY(sve_get_vl)
46         _sve_rdvl       0, 1
47         ret
48 ENDPROC(sve_get_vl)
49 #endif /* CONFIG_ARM64_SVE */