|
From: <sv...@va...> - 2016-10-17 16:15:34
|
Author: sewardj
Date: Mon Oct 17 17:15:27 2016
New Revision: 16050
Log:
Merge, from trunk:
16026 mips32: fix the wrong offset for mmap2()
Modified:
branches/VALGRIND_3_12_BRANCH/ (props changed)
branches/VALGRIND_3_12_BRANCH/coregrind/m_syswrap/syswrap-mips32-linux.c
Modified: branches/VALGRIND_3_12_BRANCH/coregrind/m_syswrap/syswrap-mips32-linux.c
==============================================================================
--- branches/VALGRIND_3_12_BRANCH/coregrind/m_syswrap/syswrap-mips32-linux.c (original)
+++ branches/VALGRIND_3_12_BRANCH/coregrind/m_syswrap/syswrap-mips32-linux.c Mon Oct 17 17:15:27 2016
@@ -530,7 +530,7 @@
PRE(sys_mmap2)
{
- /* Exactly like sys_mmap() except the file offset is specified in pagesize
+ /* Exactly like sys_mmap() except the file offset is specified in 4096 byte
units rather than bytes, so that it can be used for files bigger than
2^32 bytes. */
SysRes r;
@@ -540,7 +540,7 @@
unsigned long, prot, unsigned long, flags,
unsigned long, fd, unsigned long, offset);
r = mips_PRE_sys_mmap(tid, ARG1, ARG2, ARG3, ARG4, ARG5,
- VKI_PAGE_SIZE * (Off64T) ARG6);
+ 4096 * (Off64T) ARG6);
SET_STATUS_from_SysRes(r);
}
|