Skip to content

Commit

Permalink
fix compilation on OSX
Browse files Browse the repository at this point in the history
Change-Id: I380a4e22bc7a76562a0f2599c5ca8c884cce18be
  • Loading branch information
rdementi committed Jan 31, 2019
1 parent f6403c1 commit 4b20d7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mmio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ MMIORange::MMIORange(uint64 baseAddr_, uint64 /* size_ */, bool readonly_) : sta

#include "PCIDriverInterface.h"

MMIORange::MMIORange(uint64 physical_address, uint64 size_, bool readonly_) : mmapAddr(NULL), readonly(readonly_)
MMIORange::MMIORange(uint64 physical_address, uint64 size_, bool readonly_) :
mmapAddr(NULL),
size(size_),
readonly(readonly_)
{
if (size_ > 4096)
if (size > 4096)
{
std::cerr << "PCM Error: the driver does not support mapping of regions > 4KB" << std::endl;
return;
Expand Down

0 comments on commit 4b20d7a

Please sign in to comment.