]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sve: Implement a helper to load SVE registers from FPSIMD state
authorJulien Grall <julien.grall@arm.com>
Fri, 28 Aug 2020 18:11:53 +0000 (19:11 +0100)
committerWill Deacon <will@kernel.org>
Mon, 21 Sep 2020 17:06:33 +0000 (18:06 +0100)
commit3eedab08e7d4167517c2d48d668ea03dd8381216
tree2e91c9e01c34d0a85c73e18ef31761ab86af5ec0
parentfb10ae851d2d0eedc61cbebeebcd6f5e9db2fda4
arm64/sve: Implement a helper to load SVE registers from FPSIMD state

In a follow-up patch, we may save the FPSIMD rather than the full SVE
state when the state has to be zeroed on return to userspace (e.g
during a syscall).

Introduce an helper to load SVE vectors from FPSIMD state and zero the rest
of SVE registers.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Link: https://lore.kernel.org/r/20200828181155.17745-7-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/fpsimd.h
arch/arm64/kernel/entry-fpsimd.S