1
2
3
4
5
6
7
8
9 #include <linux/linkage.h>
10
11 #include <asm/assembler.h>
12 #include <asm/fpsimdmacros.h>
13
14
15
16
17
18
19 ENTRY(fpsimd_save_state)
20 fpsimd_save x0, 8
21 ret
22 ENDPROC(fpsimd_save_state)
23
24
25
26
27
28
29 ENTRY(fpsimd_load_state)
30 fpsimd_restore x0, 8
31 ret
32 ENDPROC(fpsimd_load_state)
33
34 #ifdef CONFIG_ARM64_SVE
35 ENTRY(sve_save_state)
36 sve_save 0, x1, 2
37 ret
38 ENDPROC(sve_save_state)
39
40 ENTRY(sve_load_state)
41 sve_load 0, x1, x2, 3, x4
42 ret
43 ENDPROC(sve_load_state)
44
45 ENTRY(sve_get_vl)
46 _sve_rdvl 0, 1
47 ret
48 ENDPROC(sve_get_vl)
49 #endif