projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee8b393
)
powerpc/book3s64/pkeys: Explain key 1 reservation details
author
Aneesh Kumar K.V
<aneesh.kumar@linux.ibm.com>
Thu, 9 Jul 2020 03:29:28 +0000
(08:59 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:57 +0000
(22:57 +1000)
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
arch/powerpc/mm/book3s64/pkeys.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/book3s64/pkeys.c
b/arch/powerpc/mm/book3s64/pkeys.c
index 82ace6acb0aa966843f9e97a6a969328b63248dc..ee27f18fac32241370c34708709c39e89f64b1d8 100644
(file)
--- 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 */