summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2020-07-09 08:59:28 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-20 22:57:57 +1000
commit1f404058e2911afe08417ef82f17aba6adccfc63 (patch)
treeb2f3e7c377611b8c2076cc3e20309f087660ff94
parentee8b39331f89950b0a011c7965db5694f0153166 (diff)
powerpc/book3s64/pkeys: Explain key 1 reservation details
This explains the details w.r.t key 1. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200709032946.881753-6-aneesh.kumar@linux.ibm.com
-rw-r--r--arch/powerpc/mm/book3s64/pkeys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s64/pkeys.c b/arch/powerpc/mm/book3s64/pkeys.c
index 82ace6acb0aa..ee27f18fac32 100644
--- a/arch/powerpc/mm/book3s64/pkeys.c
+++ b/arch/powerpc/mm/book3s64/pkeys.c
@@ -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 */