Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112681667
D29305.id86875.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
711 B
Referenced Files
None
Subscribers
None
D29305.id86875.diff
View Options
Index: sys/dev/xen/grant_table/grant_table.c
===================================================================
--- sys/dev/xen/grant_table/grant_table.c
+++ sys/dev/xen/grant_table/grant_table.c
@@ -533,10 +533,18 @@
shared = (grant_entry_t *)area;
}
+#if defined(__x86_64__) || defined(__arm__) || defined(__i386__)
for (i = start_idx; i <= end_idx; i++) {
pmap_kenter((vm_offset_t) shared + i * PAGE_SIZE,
resume_frames + i * PAGE_SIZE);
}
+#elif defined(__aarch64__)
+ pmap_kenter((vm_offset_t) shared + (start_idx << PAGE_SHIFT),
+ (end_idx - start_idx + 1) << PAGE_SHIFT, resume_frames,
+ VM_MEMATTR_XEN);
+#else
+#error "Unsupported architecture"
+#endif
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 9:23 AM (5 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17254036
Default Alt Text
D29305.id86875.diff (711 B)
Attached To
Mode
D29305: xen/grant_table: adjust use of pmap_kenter() for aarch64
Attached
Detach File
Event Timeline
Log In to Comment