Skip to content

Commit 38ee3c5

Browse files
brooniectmarinas
authored andcommitted
arm64/sve: Add some comments for sve_save/load_state()
The use of macros for the actual function bodies means legibility is always going to be a bit of a challenge, especially while we can't rely on SVE support in the toolchain, but this helps a little. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 090bf6f commit 38ee3c5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

arch/arm64/kernel/entry-fpsimd.S

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,24 @@ SYM_FUNC_END(fpsimd_load_state)
3333

3434
#ifdef CONFIG_ARM64_SVE
3535

36+
/*
37+
* Save the SVE state
38+
*
39+
* x0 - pointer to buffer for state
40+
* x1 - pointer to storage for FPSR
41+
*/
3642
SYM_FUNC_START(sve_save_state)
3743
sve_save 0, x1, 2
3844
ret
3945
SYM_FUNC_END(sve_save_state)
4046

47+
/*
48+
* Load the SVE state
49+
*
50+
* x0 - pointer to buffer for state
51+
* x1 - pointer to storage for FPSR
52+
* x2 - VQ-1
53+
*/
4154
SYM_FUNC_START(sve_load_state)
4255
sve_load 0, x1, x2, 3, x4
4356
ret

0 commit comments

Comments
 (0)