File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ config X86
155
155
select VIRT_TO_BUS
156
156
select X86_DEV_DMA_OPS if X86_64
157
157
select X86_FEATURE_NAMES if PROC_FS
158
+ select ARCH_USES_HIGH_VMA_FLAGS if X86_INTEL_MEMORY_PROTECTION_KEYS
158
159
159
160
config INSTRUCTION_DECODER
160
161
def_bool y
Original file line number Diff line number Diff line change @@ -170,6 +170,17 @@ extern unsigned int kobjsize(const void *objp);
170
170
#define VM_NOHUGEPAGE 0x40000000 /* MADV_NOHUGEPAGE marked this vma */
171
171
#define VM_MERGEABLE 0x80000000 /* KSM may merge identical pages */
172
172
173
+ #ifdef CONFIG_ARCH_USES_HIGH_VMA_FLAGS
174
+ #define VM_HIGH_ARCH_BIT_0 32 /* bit only usable on 64-bit architectures */
175
+ #define VM_HIGH_ARCH_BIT_1 33 /* bit only usable on 64-bit architectures */
176
+ #define VM_HIGH_ARCH_BIT_2 34 /* bit only usable on 64-bit architectures */
177
+ #define VM_HIGH_ARCH_BIT_3 35 /* bit only usable on 64-bit architectures */
178
+ #define VM_HIGH_ARCH_0 BIT(VM_HIGH_ARCH_BIT_0)
179
+ #define VM_HIGH_ARCH_1 BIT(VM_HIGH_ARCH_BIT_1)
180
+ #define VM_HIGH_ARCH_2 BIT(VM_HIGH_ARCH_BIT_2)
181
+ #define VM_HIGH_ARCH_3 BIT(VM_HIGH_ARCH_BIT_3)
182
+ #endif /* CONFIG_ARCH_USES_HIGH_VMA_FLAGS */
183
+
173
184
#if defined(CONFIG_X86 )
174
185
# define VM_PAT VM_ARCH_1 /* PAT reserves whole VMA at once (x86) */
175
186
#elif defined(CONFIG_PPC )
Original file line number Diff line number Diff line change @@ -669,3 +669,6 @@ config ZONE_DEVICE
669
669
670
670
config FRAME_VECTOR
671
671
bool
672
+
673
+ config ARCH_USES_HIGH_VMA_FLAGS
674
+ bool
You can’t perform that action at this time.
0 commit comments