projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb4a70
)
x86/cpu, x86/mm/pkeys: Define new CR4 bit
author
Dave Hansen
<
[email protected]
>
Fri, 12 Feb 2016 21:02:02 +0000
(13:02 -0800)
committer
Ingo Molnar
<
[email protected]
>
Tue, 16 Feb 2016 09:11:14 +0000
(10:11 +0100)
There is a new bit in CR4 for enabling protection keys. We
will actually enable it later in the series.
Signed-off-by: Dave Hansen <
[email protected]
>
Reviewed-by: Thomas Gleixner <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Brian Gerst <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Denys Vlasenko <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/include/uapi/asm/processor-flags.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/uapi/asm/processor-flags.h
b/arch/x86/include/uapi/asm/processor-flags.h
index 79887abcb5e1fe1e45c08e94a3912fdd4ede9d4e..567de50a4c2a59c1a85ed4ee6025498352227dc1 100644
(file)
--- a/
arch/x86/include/uapi/asm/processor-flags.h
+++ b/
arch/x86/include/uapi/asm/processor-flags.h
@@
-118,6
+118,8
@@
#define X86_CR4_SMEP _BITUL(X86_CR4_SMEP_BIT)
#define X86_CR4_SMAP_BIT 21 /* enable SMAP support */
#define X86_CR4_SMAP _BITUL(X86_CR4_SMAP_BIT)
+#define X86_CR4_PKE_BIT 22 /* enable Protection Keys support */
+#define X86_CR4_PKE _BITUL(X86_CR4_PKE_BIT)
/*
* x86-64 Task Priority Register, CR8