提交 8171ff3d 编写于 作者: M Mark Brown 提交者: Wang ShaoBo

arm64/sve: Minor clarification of ABI documentation

mainline inclusion
from mainline-v5.17-rc1
commit aed34d9e
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ITJT
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=aed34d9e52b80b4e7485119272c77c5553a21499

-------------------------------------------------

As suggested by Luis for the SME version of this explicitly say that the
vector length should be extracted from the return value of a set vector
length prctl() with a bitwise and rather than just any old and.
Suggested-by: NLuis Machado <Luis.Machado@arm.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211210184133.320748-4-broonie@kernel.orgSigned-off-by: NCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
上级 cc56b8f0
...@@ -255,7 +255,7 @@ prctl(PR_SVE_GET_VL) ...@@ -255,7 +255,7 @@ prctl(PR_SVE_GET_VL)
vector length change (which would only normally be the case between a vector length change (which would only normally be the case between a
fork() or vfork() and the corresponding execve() in typical use). fork() or vfork() and the corresponding execve() in typical use).
To extract the vector length from the result, and it with To extract the vector length from the result, bitwise and it with
PR_SVE_VL_LEN_MASK. PR_SVE_VL_LEN_MASK.
Return value: a nonnegative value on success, or a negative value on error: Return value: a nonnegative value on success, or a negative value on error:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册