summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0001-ltp-vma03-fix-the-alginment-of-page-size.patch
Commit message (Collapse)AuthorAgeFilesLines
* ltp: vma03 fix the alginment of page sizeChuang Dong2015-07-021-0/+34
the offset the param of mmap2() doesn't align the page size, but, this param allow must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE).meanwhile offset * 4096 must be a multiple of the system page size, so modify the input param of offset pgoff = (ULONG_MAX - 1)&(~((pgsz-1)>>12)); (From OE-Core rev: f9a140441ab27c6e90d108ced76cff2dc70eedf2) Signed-off-by: Chuang Dong <Chuang.Dong@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>