Commit 1f404058 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Michael Ellerman

powerpc/book3s64/pkeys: Explain key 1 reservation details

This explains the details w.r.t key 1.
Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-6-aneesh.kumar@linux.ibm.com
parent ee8b3933
...@@ -128,7 +128,10 @@ static int pkey_initialize(void) ...@@ -128,7 +128,10 @@ static int pkey_initialize(void)
#else #else
os_reserved = 0; os_reserved = 0;
#endif #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); reserved_allocation_mask = (0x1 << 1) | (0x1 << execute_only_key);
/* register mask is in BE format */ /* register mask is in BE format */
......
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