diff --git a/VERSION b/VERSION index 611a2759..486a2539 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-91-g7a96c9fe24+1 \ No newline at end of file +B1-92-g0d29527758+1 \ No newline at end of file diff --git a/c-host/src/app.c b/c-host/src/app.c index 92eb5d75..8c4620d8 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -27,6 +27,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include "common/crash.h" #include "common/thread.h" #include "common/ivshmem.h" +#include "common/sysinfo.h" #include @@ -435,7 +436,8 @@ int app_main(int argc, char * argv[]) app.maxFrameSize = ALIGN_DN(lgmpHostMemAvail(app.lgmp) / LGMP_Q_FRAME_LEN); for(int i = 0; i < LGMP_Q_FRAME_LEN; ++i) { - if ((status = lgmpHostMemAlloc(app.lgmp, app.maxFrameSize, &app.frameMemory[i])) != LGMP_OK) + const long sz = sysinfo_getPageSize(); + if ((status = lgmpHostMemAllocAligned(app.lgmp, app.maxFrameSize, sz, &app.frameMemory[i])) != LGMP_OK) { DEBUG_ERROR("lgmpHostMemAlloc Failed (Frame): %s", lgmpStatusString(status)); goto fail;