Commit 68a4c52e authored by Julien Grall's avatar Julien Grall Committed by Will Deacon

arm64/signal: Update the comment in preserve_sve_context

The SVE state is saved by fpsimd_signal_preserve_current_state() and not
preserve_fpsimd_context(). Update the comment in preserve_sve_context to
reflect the current behavior.
Signed-off-by: default avatarJulien Grall <julien.grall@arm.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: default avatarDave Martin <Dave.Martin@arm.com>
Link: https://lore.kernel.org/r/20200828181155.17745-3-broonie@kernel.orgSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent f186a84d
...@@ -244,7 +244,8 @@ static int preserve_sve_context(struct sve_context __user *ctx) ...@@ -244,7 +244,8 @@ static int preserve_sve_context(struct sve_context __user *ctx)
if (vq) { if (vq) {
/* /*
* This assumes that the SVE state has already been saved to * This assumes that the SVE state has already been saved to
* the task struct by calling preserve_fpsimd_context(). * the task struct by calling the function
* fpsimd_signal_preserve_current_state().
*/ */
err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET, err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET,
current->thread.sve_state, current->thread.sve_state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment