提交 1f404058 编写于 作者: A Aneesh Kumar K.V 提交者: Michael Ellerman

powerpc/book3s64/pkeys: Explain key 1 reservation details

This explains the details w.r.t key 1.
Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-6-aneesh.kumar@linux.ibm.com
上级 ee8b3933
......@@ -128,7 +128,10 @@ static int pkey_initialize(void)
#else
os_reserved = 0;
#endif
/* Bits are in LE format. */
/*
* key 1 is recommended not to be used. PowerISA(3.0) page 1015,
* programming note.
*/
reserved_allocation_mask = (0x1 << 1) | (0x1 << execute_only_key);
/* register mask is in BE format */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册