Commit fc20afe0 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

vfio: fix compilation for ARM targets

parent 3b5952a4
......@@ -458,10 +458,10 @@ Device::regionMap(size_t index)
if (!(r->flags & VFIO_REGION_INFO_FLAG_MMAP))
return MAP_FAILED;
int flags = MAP_SHARED | MAP_32BIT;
int flags = MAP_SHARED;
#if !(defined(__arm__) || defined(__aarch64__))
flags |= MAP_SHARED;
flags |= MAP_SHARED | MAP_32BIT;
#endif
mappings[index] = mmap(nullptr, r->size,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment