File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,23 @@ static struct __vdso_info vdso_info __ro_after_init = {
206
206
};
207
207
208
208
#ifdef CONFIG_COMPAT
209
+ static struct vm_special_mapping rv_compat_vdso_maps [] __ro_after_init = {
210
+ [RV_VDSO_MAP_VVAR ] = {
211
+ .name = "[vvar]" ,
212
+ .fault = vvar_fault ,
213
+ },
214
+ [RV_VDSO_MAP_VDSO ] = {
215
+ .name = "[vdso]" ,
216
+ .mremap = vdso_mremap ,
217
+ },
218
+ };
219
+
209
220
static struct __vdso_info compat_vdso_info __ro_after_init = {
210
221
.name = "compat_vdso" ,
211
222
.vdso_code_start = compat_vdso_start ,
212
223
.vdso_code_end = compat_vdso_end ,
213
- .dm = & rv_vdso_maps [RV_VDSO_MAP_VVAR ],
214
- .cm = & rv_vdso_maps [RV_VDSO_MAP_VDSO ],
224
+ .dm = & rv_compat_vdso_maps [RV_VDSO_MAP_VVAR ],
225
+ .cm = & rv_compat_vdso_maps [RV_VDSO_MAP_VDSO ],
215
226
};
216
227
#endif
217
228
You can’t perform that action at this time.
0 commit comments