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:
parent
b32303b664
commit
e9a6f1b8c1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue