Page MenuHomeFreeBSD

D29305.diff
No OneTemporary

D29305.diff

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

Mime Type
text/plain
Expires
Mon, Jan 27, 11:01 PM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16219264
Default Alt Text
D29305.diff (711 B)

Event Timeline