1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

vfio: fix compilation for ARM targets

This commit is contained in:
Steffen Vogel 2020-06-15 22:52:32 +02:00
parent b32303b664
commit e9a6f1b8c1

View file

@ -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,